Log bad alert config

This commit is contained in:
utkarshcmu 2016-11-02 18:22:24 -07:00
parent 942de5497e
commit d009c6b953

View File

@ -104,6 +104,7 @@ func (e *DashAlertExtractor) GetAlerts() ([]*m.Alert, error) {
panelQuery := findPanelQueryByRefId(panel, queryRefId)
if panelQuery == nil {
e.log.Error("Query not found", "panel", alert.PanelId, "queryRefId", queryRefId)
return nil, ValidationError{Reason: "Alert refers to query that cannot be found"}
}