mirror of
https://github.com/grafana/grafana.git
synced 2025-09-29 06:34:04 +08:00
alerting: only log when screenshot been uploaded
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user