metrics: don't Panic on bad shutdown

Just log the error.
This commit is contained in:
Roman Khimov 2022-07-28 17:49:30 +03:00
parent b92896b0c0
commit ff93a680eb

View file

@ -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))
}
}