Skip to content

Commit

Permalink
Don't log Fatal when http server exits
Browse files Browse the repository at this point in the history
Otherwise we exit before letting the server do its graceful shutdown.
  • Loading branch information
jacksontj committed May 15, 2019
1 parent b932d1f commit 6c22b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/promxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}()

Expand Down

0 comments on commit 6c22b84

Please sign in to comment.