From 7848df0ca06ca3c06b02eb4fdf6c83e04f0d90b5 Mon Sep 17 00:00:00 2001 From: laodouya Date: Tue, 20 Nov 2018 14:02:44 +0800 Subject: [PATCH] Utils/Profiler log field name wrong. Should log memprofile filename in memprofile section. --- utils/profiler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/profiler.go b/utils/profiler.go index 013dd3e7c..1842535f2 100644 --- a/utils/profiler.go +++ b/utils/profiler.go @@ -48,7 +48,7 @@ func StartProfile(cpuprofile, memprofile string) error { log.WithField("file", memprofile).WithError(err).Error("failed to create memory profile file") return err } - log.WithField("file", cpuprofile).WithError(err).Info("writing memory profiling to file") + log.WithField("file", memprofile).WithError(err).Info("writing memory profiling to file") prof.mem = f runtime.MemProfileRate = 4096 }