mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Add Go error message to warning log for screenshots. (#49870)
Makes debugging problems with alert screenshotting easier.
This commit is contained in:
parent
94375592c8
commit
56f40bd413
@ -247,10 +247,11 @@ func (st *Manager) setNextState(ctx context.Context, alertRule *ngModels.AlertRu
|
|||||||
|
|
||||||
err := st.maybeTakeScreenshot(ctx, alertRule, currentState, oldState)
|
err := st.maybeTakeScreenshot(ctx, alertRule, currentState, oldState)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
st.log.Warn("Error generating a screenshot for an alert instance.",
|
st.log.Warn("failed to generate a screenshot for an alert instance",
|
||||||
"alert_rule", alertRule.UID,
|
"alert_rule", alertRule.UID,
|
||||||
"dashboard", alertRule.DashboardUID,
|
"dashboard", alertRule.DashboardUID,
|
||||||
"panel", alertRule.PanelID)
|
"panel", alertRule.PanelID,
|
||||||
|
"err", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
st.set(currentState)
|
st.set(currentState)
|
||||||
|
Loading…
Reference in New Issue
Block a user