Change from log.Fatalf to log.Printf to ensure the graceful shutdown actually works

This commit is contained in:
J. J. Bigorra 2020-11-11 09:00:41 +01:00
parent b282d369e3
commit b4851c4607

View File

@ -1794,7 +1794,7 @@ func main() {
// it won't block the graceful shutdown handling below
go func() {
if err := srv.ListenAndServe(); err != nil && errors.Is(err, http.ErrServerClosed) {
log.Fatalf("listen: %s\n", err)
log.Printf("listen: %s\n", err)
}
}()