Merge pull request #4093 from wkloucek/improve-startup-errors

improve startup error logging
This commit is contained in:
David Christofas
2022-07-05 10:56:36 +02:00
committed by GitHub
27 changed files with 87 additions and 49 deletions
+3 -2
View File
@@ -97,8 +97,9 @@ func Server(cfg *config.Config) *cli.Command {
gr.Add(func() error {
return server.Run()
}, func(_ error) {
logger.Info().
}, func(err error) {
logger.Error().
Err(err).
Str("server", "http").
Msg("Shutting down server")