mirror of
https://github.com/itzg/mc-router.git
synced 2024-12-22 16:17:38 +01:00
Output profiling filename
This commit is contained in:
parent
6cdc1e06ac
commit
7d2d70b589
@ -48,7 +48,7 @@ func main() {
|
||||
logrus.WithError(err).Fatal("trying to create cpu profile file")
|
||||
}
|
||||
|
||||
logrus.Info("Starting cpu profiling")
|
||||
logrus.WithField("file", cpuProfileFile).Info("Starting cpu profiling")
|
||||
err = pprof.StartCPUProfile(cpuProfileFile)
|
||||
if err != nil {
|
||||
logrus.WithError(err).Fatal("trying to start cpu profile")
|
||||
|
Loading…
Reference in New Issue
Block a user