improve startup error logging

This commit is contained in:
Willy Kloucek
2022-07-05 08:41:21 +02:00
parent 25ca4150b0
commit f02591b5c3
27 changed files with 87 additions and 49 deletions
+5 -1
View File
@@ -65,7 +65,11 @@ func Server(cfg *config.Config) *cli.Command {
)
gr.Add(service.Run, func(_ error) {
fmt.Println("shutting down grpc server")
logger.Error().
Err(err).
Str("server", "grpc").
Msg("Shutting down server")
cancel()
})