Просмотр исходного кода

alerting: only log when screenshot been uploaded

bergquist 7 лет назад
Родитель
Сommit
c4292b43f5
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      pkg/services/alerting/notifier.go

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

@@ -104,7 +104,10 @@ func (n *notificationService) uploadImage(context *EvalContext) (err error) {
 		return err
 		return err
 	}
 	}
 
 
-	n.log.Info("uploaded", "url", context.ImagePublicUrl)
+	if context.ImagePublicUrl != "" {
+		n.log.Info("uploaded screenshot of alert to external image store", "url", context.ImagePublicUrl)
+	}
+
 	return nil
 	return nil
 }
 }