From 88129bad9dcfc72f5286a8308dc62e4160a874e7 Mon Sep 17 00:00:00 2001 From: Dimitar Petrov Date: Tue, 20 Aug 2019 14:55:36 +0300 Subject: [PATCH] Add error to panic --- pkg/sm/sm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sm/sm.go b/pkg/sm/sm.go index 56182b91e..a3d0cabe5 100644 --- a/pkg/sm/sm.go +++ b/pkg/sm/sm.go @@ -183,7 +183,7 @@ func New(ctx context.Context, cancel context.CancelFunc, cfg *config.Settings) ( // Build builds the Service Manager func (smb *ServiceManagerBuilder) Build() *ServiceManager { if err := smb.installHealth(); err != nil { - log.C(smb.ctx).Panic() + log.C(smb.ctx).Panic(err) } // setup server and add relevant global middleware