Alerting: Fix logging for failed annotations writing. (#93856)
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user