Skip to content

Commit

Permalink
Chore: Use ruleId instead of alertId as log keyword (#18738)
Browse files Browse the repository at this point in the history
  • Loading branch information
marefr authored and torkelo committed Aug 27, 2019
1 parent 73d9f26 commit e83f55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/alerting/result_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (handler *defaultResultHandler) handle(evalContext *EvalContext) error {

metrics.MAlertingResultState.WithLabelValues(string(evalContext.Rule.State)).Inc()
if evalContext.shouldUpdateAlertState() {
handler.log.Info("New state change", "alertId", evalContext.Rule.ID, "newState", evalContext.Rule.State, "prev state", evalContext.PrevAlertState)
handler.log.Info("New state change", "ruleId", evalContext.Rule.ID, "newState", evalContext.Rule.State, "prev state", evalContext.PrevAlertState)

cmd := &models.SetAlertStateCommand{
AlertId: evalContext.Rule.ID,
Expand Down

0 comments on commit e83f55f

Please sign in to comment.