#1346: move maintenance messages to DEBUG log level (#1347)

Signed-off-by: Ted Zlatanov <tzz@lifelogs.com>
This commit is contained in:
Ted Zlatanov 2018-04-30 05:56:17 -04:00 committed by stuart nelson
parent cecfe5b2f5
commit b04e9ad19b
2 changed files with 4 additions and 4 deletions

View File

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

View File

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