Make fixing group update time less noisy
@@ -106,10 +106,12 @@ func (q *TestGroupQueue) FixAll(whens map[string]time.Time) error {
missing = append(missing, name)
continue
}
+ if !when.Equal(it.when) {
logrus.WithFields(logrus.Fields{
"group": name,
"when": when,
- }).Info("Fixed group")
+ }).Info("Fixing groups")
+ }
it.when = when
}
heap.Init(&q.queue)
@@ -129,12 +131,14 @@ func (q *TestGroupQueue) Fix(name string, when time.Time) error {
if !ok {
return errors.New("not found")
}
- it.when = when
- heap.Fix(&q.queue, it.index)
+ if !when.Equal(it.when) {
logrus.WithFields(logrus.Fields{
"group": name,
"when": when,
}).Info("Fixed group")
+ }
+ it.when = when
+ heap.Fix(&q.queue, it.index)
return nil
}
