From 55a3310446151e2235e247d86dfe38095732fa9d Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Mon, 22 May 2023 14:53:18 -0700 Subject: [PATCH] logger-http: Don't retry after a succesful send (#17266) --- internal/logger/target/http/http.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/logger/target/http/http.go b/internal/logger/target/http/http.go index e400fc43a..c8d290b96 100644 --- a/internal/logger/target/http/http.go +++ b/internal/logger/target/http/http.go @@ -283,6 +283,8 @@ func (h *Target) logEntry(ctx context.Context, entry interface{}) { if err := h.send(ctx, logJSON, webhookCallTimeout); err != nil { h.config.LogOnce(ctx, err, h.config.Endpoint) atomic.AddInt64(&h.failedMessages, 1) + } else { + return } } }