瀏覽代碼

fix(notifications): failed image upload should not stop notification

closes #6638
bergquist 9 年之前
父節點
當前提交
2b6013ce81
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      pkg/services/alerting/notifier.go

+ 2 - 4
pkg/services/alerting/notifier.go

@@ -55,10 +55,8 @@ func (n *RootNotifier) Notify(context *EvalContext) error {
 		return nil
 		return nil
 	}
 	}
 
 
-	err = n.uploadImage(context)
-	if err != nil {
-		n.log.Error("Failed to upload alert panel image", "error", err)
-		return err
+	if err = n.uploadImage(context); err != nil {
+		n.log.Error("Failed to upload alert panel image.", "error", err)
 	}
 	}
 
 
 	return n.sendNotifications(context, notifiers)
 	return n.sendNotifications(context, notifiers)