From db15ab10b972ee373bc2f5e050b54d0da020bb8d Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 11 May 2020 14:02:19 +0100 Subject: [PATCH] Direct logging to more useful places --- common/log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/log.go b/common/log.go index 5359a2e5b..4b6419b50 100644 --- a/common/log.go +++ b/common/log.go @@ -84,9 +84,9 @@ func callerPrettyfier(f *runtime.Frame) (string, string) { // simplest, and it gives us the freedom to run pprof on a separate port. func SetupPprof() { if hostPort := os.Getenv("PPROFLISTEN"); hostPort != "" { - logrus.Print("Starting pprof on", hostPort) + logrus.Warn("Starting pprof on", hostPort) go func() { - logrus.WithError(http.ListenAndServe(hostPort, nil)).Print("Failed to setup pprof listener") + logrus.WithError(http.ListenAndServe(hostPort, nil)).Error("Failed to setup pprof listener") }() } }