From 6c22b8416aa5b60765681104d44b54b35d1d9a5c Mon Sep 17 00:00:00 2001 From: Thomas Jackson Date: Wed, 15 May 2019 14:11:31 -0700 Subject: [PATCH] Don't log Fatal when http server exits Otherwise we exit before letting the server do its graceful shutdown. --- cmd/promxy/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/promxy/main.go b/cmd/promxy/main.go index c926e5906..4397b2514 100644 --- a/cmd/promxy/main.go +++ b/cmd/promxy/main.go @@ -363,7 +363,7 @@ func main() { go func() { logrus.Infof("promxy starting") if err := srv.ListenAndServe(); err != nil { - log.Fatalf("Error listening: %v", err) + log.Errorf("Error listening: %v", err) } }()