mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-24 04:58:31 -05:00
code cleanup & refactoring
Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
@@ -76,15 +76,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
}
|
||||
|
||||
gr.Add(debugServer.ListenAndServe, func(err error) {
|
||||
logger.Error().Err(err).Str("server", cfg.Service.Name).
|
||||
Msg("Shutting down debug server")
|
||||
if err := debugServer.Shutdown(context.Background()); err != nil {
|
||||
logger.Error().
|
||||
Err(err).
|
||||
Str("server", cfg.Service.Name).
|
||||
Msg("Error during debug server shutdown")
|
||||
}
|
||||
|
||||
_ = debugServer.Shutdown(ctx)
|
||||
cancel()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user