From ca7a74b3605d4bb1af94f798bca1c38f1c27eb75 Mon Sep 17 00:00:00 2001 From: Yama Date: Wed, 26 Oct 2022 09:18:08 +0200 Subject: [PATCH] Update svc.go Reduce log severity for lack of implementing Gatherer, Healther, Aliver --- svc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/svc.go b/svc.go index eac4ebf..aa5d54a 100644 --- a/svc.go +++ b/svc.go @@ -91,15 +91,15 @@ func (s *SVC) AddWorker(name string, w Worker) { s.logger.Fatal("Duplicate worker names!", zap.String("name", name), zap.Stack("stacktrace")) } if _, ok := w.(Healther); !ok { - s.logger.Warn("Worker does not implement Healther interface", zap.String("worker", name)) + s.logger.Info("Worker does not implement Healther interface", zap.String("worker", name)) } if _, ok := w.(Aliver); !ok { - s.logger.Warn("Worker does not implement Aliver interface", zap.String("worker", name)) + s.logger.Info("Worker does not implement Aliver interface", zap.String("worker", name)) } if g, ok := w.(Gatherer); ok { s.AddGatherer(g.Gatherer()) } else { - s.logger.Warn("Worker does not implement Gatherer interface", zap.String("worker", name)) + s.logger.Info("Worker does not implement Gatherer interface", zap.String("worker", name)) } // Track workers as ordered set to initialize them in order. s.workersAdded = append(s.workersAdded, name)