From ff93a680eb186674ef72914d962891518fd6f303 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 28 Jul 2022 17:49:30 +0300 Subject: [PATCH] metrics: don't Panic on bad shutdown Just log the error. --- pkg/services/metrics/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/metrics/metrics.go b/pkg/services/metrics/metrics.go index b3cb4c27b..e204cbe32 100644 --- a/pkg/services/metrics/metrics.go +++ b/pkg/services/metrics/metrics.go @@ -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)) } }