From 5c7aad3009d3f1c77ea8738f60c74e15c6fed713 Mon Sep 17 00:00:00 2001 From: Sofia Papagiannaki Date: Wed, 23 Sep 2020 14:25:43 +0300 Subject: [PATCH] Lower level of notification translation messages --- pkg/services/alerting/rule.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/services/alerting/rule.go b/pkg/services/alerting/rule.go index 5edd3467c55..6ccbf2420e1 100644 --- a/pkg/services/alerting/rule.go +++ b/pkg/services/alerting/rule.go @@ -140,7 +140,7 @@ func NewRuleFromDBAlert(ruleDef *models.Alert) (*Rule, error) { if id, err := jsonModel.Get("id").Int64(); err == nil { uid, err := translateNotificationIDToUID(id, ruleDef.OrgId) if err != nil { - logger.Error("Unable to translate notification id to uid", "error", err.Error(), "dashboardId", model.DashboardID, "alertId", model.ID, "panelId", model.PanelID, "notificationId", id) + logger.Debug("Unable to translate notification id to uid", "error", err.Error(), "dashboardId", model.DashboardID, "alertId", model.ID, "panelId", model.PanelID) } else { model.Notifications = append(model.Notifications, uid) } @@ -176,7 +176,6 @@ func NewRuleFromDBAlert(ruleDef *models.Alert) (*Rule, error) { func translateNotificationIDToUID(id int64, orgID int64) (string, error) { notificationUID, err := getAlertNotificationUIDByIDAndOrgID(id, orgID) if err != nil { - logger.Debug("Failed to translate Notification Id to Uid", "orgID", orgID, "Id", id) return "", err }