Skip to content

Commit

Permalink
Merge branch 'master' into fix-refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas Rekkas (arekkas) committed Jun 13, 2017
2 parents 3675cf8 + b5cb0c6 commit c5583a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func RunHost(c *config.Config) func(cmd *cobra.Command, args []string) {
},
})

pkg.Must(graceful.Graceful(func() error {
err := graceful.Graceful(func() error {
var err error
logger.Infof("Setting up http server on %s", c.GetAddress())
if c.ForceHTTP {
Expand All @@ -91,7 +91,8 @@ func RunHost(c *config.Config) func(cmd *cobra.Command, args []string) {
}

return err
}, srv.Shutdown), "Could not gracefully run server")
}, srv.Shutdown)
logger.WithError(err).Fatal("Could not gracefully run server")
}
}

Expand Down

0 comments on commit c5583a6

Please sign in to comment.