From 14e9dd081d127b4c59f756279a56a680e0d5fafd Mon Sep 17 00:00:00 2001 From: Chris Piraino Date: Thu, 3 Dec 2020 10:47:33 -0600 Subject: [PATCH] Log replication warnings when no error suppression is defined --- agent/consul/replication.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/consul/replication.go b/agent/consul/replication.go index 910f18871ce9..920d1cd7c407 100644 --- a/agent/consul/replication.go +++ b/agent/consul/replication.go @@ -104,7 +104,7 @@ func (r *Replicator) Run(ctx context.Context) error { // the next round of replication atomic.StoreUint64(&r.lastRemoteIndex, 0) - if r.suppressErrorLog != nil && !r.suppressErrorLog(err) { + if r.suppressErrorLog == nil || (r.suppressErrorLog != nil && !r.suppressErrorLog(err)) { r.logger.Warn("replication error (will retry if still leader)", "error", err) }