mirror of
https://github.com/minio/minio.git
synced 2026-11-29 07:33:54 +00:00
logger-http: Don't retry after a succesful send (#17266)
This commit is contained in:
1 parent
fc03be7891
commit
55a3310446
1 file changed
+2
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user