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
+4 -1
View File
@@ -59,7 +59,10 @@ func Server(cfg *config.Config) *cli.Command {
)
gr.Add(grpcServer.Run, func(_ error) {
logger.Info().Str("server", "grpc").Msg("shutting down server")
logger.Error().
Err(err).
Str("server", "grpc").
Msg("shutting down server")
cancel()
})