Commit 3fb3ca12 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

feat: swap debug message on server stop with error message, if any

parent ca32a3c3
......@@ -52,10 +52,10 @@ func runServer(serv stoppableServer, logger *logrus.Logger) {
} else {
err = server.FilterStopError(httpServer.ListenAndServe())
}
logger.Debug("Server stopped")
if err != nil {
_ = server.LogError(err)
}
logger.Debug("Server stopped")
stopped <- struct{}{}
}()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment