In case the http server cannot be started the error is logged

This commit is contained in:
Thomas Müller
2020-01-28 11:40:12 +01:00
parent 3661ce2158
commit 5390ca28ef
+8 -1
View File
@@ -152,7 +152,14 @@ func Server(cfg *config.Config) *cli.Command {
}
gr.Add(func() error {
return server.Run()
err := server.Run()
if err != nil {
logger.Error().
Err(err).
Str("transport", "http").
Msg("Failed to start server")
}
return err
}, func(_ error) {
logger.Info().
Str("transport", "http").