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 <george.robinson@grafana.com>

* different wording and data

---------

Co-authored-by: George Robinson <george.robinson@grafana.com>
This commit is contained in:
Santiago 2023-02-07 11:04:05 -03:00 committed by GitHub
parent b0213a4877
commit 955c7b13ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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