Remove spammy error

This commit is contained in:
Sofia Papagiannaki
2020-10-10 09:25:12 +03:00
parent 1ac5c3f281
commit 4c07431242
+1 -3
View File
@@ -139,9 +139,7 @@ func NewRuleFromDBAlert(ruleDef *models.Alert) (*Rule, error) {
jsonModel := simplejson.NewFromAny(v)
if id, err := jsonModel.Get("id").Int64(); err == nil {
uid, err := translateNotificationIDToUID(id, ruleDef.OrgId)
if err != nil {
logger.Debug("Unable to translate notification id to uid", "error", err.Error(), "dashboardId", model.DashboardID, "alertId", model.ID, "panelId", model.PanelID)
} else {
if err == nil {
model.Notifications = append(model.Notifications, uid)
}
} else if uid, err := jsonModel.Get("uid").String(); err == nil {