Signed-off-by: Ted Zlatanov <tzz@lifelogs.com>
This commit is contained in:
parent
cecfe5b2f5
commit
b04e9ad19b
|
@ -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))
|
||||
}()
|
||||
|
||||
|
|
|
@ -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))
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in New Issue