improve startup error logging

This commit is contained in:
Willy Kloucek
2022-07-05 10:12:46 +02:00
parent 25ca4150b0
commit f02591b5c3
27 changed files with 87 additions and 49 deletions
+3 -2
View File
@@ -62,8 +62,9 @@ func Server(cfg *config.Config) *cli.Command {
return <-err
}
}, func(_ error) {
logger.Info().
}, func(err error) {
logger.Error().
Err(err).
Msg("Shutting down server")
natsServer.Shutdown()