Skip to content

Commit

Permalink
Merge pull request #36 from owncloud/bugfix/add-logging-if-server-not…
Browse files Browse the repository at this point in the history
…-started

In case the http server cannot be started the error is logged
  • Loading branch information
DeepDiver1975 authored Jan 28, 2020
2 parents 3661ce2 + 5390ca2 commit b04999d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/command/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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").
Expand Down

0 comments on commit b04999d

Please sign in to comment.