metrics: don't Panic on bad shutdown
Just log the error.
This commit is contained in:
parent
b92896b0c0
commit
ff93a680eb
1 changed files with 1 additions and 1 deletions
|
@ -37,6 +37,6 @@ func (ms *Service) ShutDown() {
|
|||
ms.log.Info("shutting down service", zap.String("endpoint", ms.Addr))
|
||||
err := ms.Shutdown(context.Background())
|
||||
if err != nil {
|
||||
ms.log.Panic("can't shut down service")
|
||||
ms.log.Error("can't shut service down", zap.Error(err))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue