From b04e9ad19b656d23b6a01e3a5f2765751e17b07f Mon Sep 17 00:00:00 2001 From: Ted Zlatanov Date: Mon, 30 Apr 2018 05:56:17 -0400 Subject: [PATCH] #1346: move maintenance messages to DEBUG log level (#1347) Signed-off-by: Ted Zlatanov --- nflog/nflog.go | 4 ++-- silence/silence.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nflog/nflog.go b/nflog/nflog.go index 5ae46517..dcbbec7a 100644 --- a/nflog/nflog.go +++ b/nflog/nflog.go @@ -316,9 +316,9 @@ func (l *Log) run() { start := l.now() var size int64 - level.Info(l.logger).Log("msg", "Running maintenance") + level.Debug(l.logger).Log("msg", "Running maintenance") defer func() { - level.Info(l.logger).Log("msg", "Maintenance done", "duration", l.now().Sub(start), "size", size) + level.Debug(l.logger).Log("msg", "Maintenance done", "duration", l.now().Sub(start), "size", size) l.metrics.snapshotSize.Set(float64(size)) }() diff --git a/silence/silence.go b/silence/silence.go index 26e3d344..5b4181ff 100644 --- a/silence/silence.go +++ b/silence/silence.go @@ -252,9 +252,9 @@ func (s *Silences) Maintenance(interval time.Duration, snapf string, stopc <-cha start := s.now() var size int64 - level.Info(s.logger).Log("msg", "Running maintenance") + level.Debug(s.logger).Log("msg", "Running maintenance") defer func() { - level.Info(s.logger).Log("msg", "Maintenance done", "duration", s.now().Sub(start), "size", size) + level.Debug(s.logger).Log("msg", "Maintenance done", "duration", s.now().Sub(start), "size", size) s.metrics.snapshotSize.Set(float64(size)) }()