mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Move debug log line to where alert rules are updated (#52318)
This commit is contained in:
parent
38ec4c0a09
commit
e7feff6d99
@ -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
|
||||
}
|
||||
|
@ -228,8 +228,6 @@ func (sch *schedule) schedulePeriodic(ctx context.Context) error {
|
||||
}
|
||||
alertRules := sch.schedulableAlertRules.all()
|
||||
|
||||
sch.log.Debug("alert rules fetched", "count", len(alertRules))
|
||||
|
||||
// registeredDefinitions is a map used for finding deleted alert rules
|
||||
// initially it is assigned to all known alert rules from the previous cycle
|
||||
// each alert rule found also in this cycle is removed
|
||||
|
Loading…
Reference in New Issue
Block a user