Alerting: Move debug log line to where alert rules are updated (#52318)

This commit is contained in:
George Robinson
2022-07-18 11:27:06 -04:00
committed by GitHub
parent 38ec4c0a09
commit e7feff6d99
2 changed files with 1 additions and 2 deletions
+1
View File
@@ -47,6 +47,7 @@ func (sch *schedule) updateSchedulableAlertRules(ctx context.Context) error {
if err := sch.ruleStore.GetAlertRulesForScheduling(ctx, &q); err != nil {
return fmt.Errorf("failed to get alert rules: %w", err)
}
sch.log.Debug("alert rules fetched", "count", len(q.Result))
sch.schedulableAlertRules.set(q.Result)
return nil
}