mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -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)
|
||||
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,
|
||||
"dashboard", alertRule.DashboardUID,
|
||||
"panel", alertRule.PanelID)
|
||||
"panel", alertRule.PanelID,
|
||||
"err", err)
|
||||
}
|
||||
|
||||
st.set(currentState)
|
||||
|
Loading…
Reference in New Issue
Block a user