From 7d8882fc54a2ab52f0f5bad412ee1162a085e7f1 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Tue, 18 Feb 2020 16:48:53 +0100 Subject: [PATCH] notify: add retry field to debug log Signed-off-by: Simon Pasquier --- notify/notify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify/notify.go b/notify/notify.go index ef112d08e2..551b765d01 100644 --- a/notify/notify.go +++ b/notify/notify.go @@ -665,7 +665,7 @@ func (r RetryStage) Exec(ctx context.Context, l log.Logger, alerts ...*types.Ale r.metrics.numNotifications.WithLabelValues(r.integration.Name()).Inc() if err != nil { r.metrics.numFailedNotifications.WithLabelValues(r.integration.Name()).Inc() - level.Debug(l).Log("msg", "Notify attempt failed", "attempt", i, "integration", r.integration.Name(), "receiver", r.groupName, "err", err) + level.Debug(l).Log("msg", "Notify attempt failed", "attempt", i, "integration", r.integration.Name(), "receiver", r.groupName, "retry", retry, "err", err) if !retry { return ctx, alerts, fmt.Errorf("cancelling notify retry for %q due to unrecoverable error: %s", r.integration.Name(), err) }