Explorar el Código

alerting: only log when screenshot been uploaded

bergquist hace 7 años
padre
commit
c4292b43f5
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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
 	}
 
-	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
 }