From 955c7b13ea1073849e7eefb9355ae73879e66128 Mon Sep 17 00:00:00 2001 From: Santiago Date: Tue, 7 Feb 2023 11:04:05 -0300 Subject: [PATCH] Alerting: Change error log to warning and apply correct format when updating historic config (#62973) * change error to warning, apply correct format * Update pkg/services/ngalert/store/alertmanager.go Co-authored-by: George Robinson * different wording and data --------- Co-authored-by: George Robinson --- pkg/services/ngalert/store/alertmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/ngalert/store/alertmanager.go b/pkg/services/ngalert/store/alertmanager.go index 650a82f733a..24b90ecbd19 100644 --- a/pkg/services/ngalert/store/alertmanager.go +++ b/pkg/services/ngalert/store/alertmanager.go @@ -154,7 +154,7 @@ func (st *DBstore) MarkConfigurationAsApplied(ctx context.Context, cmd *models.M } if rowsAffected != 1 { - st.Logger.Error("update statement affected %d alert configuration history records", rowsAffected) + st.Logger.Warn("Unexpected number of rows updating alert configuration history", "rows", rowsAffected, "org", cmd.OrgID, "hash", cmd.ConfigurationHash) } return nil