mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fix logging for failed annotations writing. (#93856)
This commit is contained in:
parent
a847608061
commit
acb051b314
@ -99,7 +99,7 @@ func (h *AnnotationBackend) Record(ctx context.Context, rule history_model.RuleM
|
|||||||
|
|
||||||
err := h.store.Save(ctx, panel, annotations, rule.OrgID, logger)
|
err := h.store.Save(ctx, panel, annotations, rule.OrgID, logger)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Error("Failed to save history batch", len(annotations), "err", err)
|
logger.Error("Failed to save history batch", "samples", len(annotations), "err", err)
|
||||||
errCh <- err
|
errCh <- err
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user