Browse Source

Chore: Use ruleId instead of alertId as log keyword (#18738)

Marcus Efraimsson 6 years ago
parent
commit
e83f55f394
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/services/alerting/result_handler.go

+ 1 - 1
pkg/services/alerting/result_handler.go

@@ -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,