Skip to content

Commit

Permalink
Log replication warnings when no error suppression is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
crhino committed Dec 3, 2020
1 parent 76d5d98 commit 14e9dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/consul/replication.go
Expand Up @@ -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)
}

Expand Down

0 comments on commit 14e9dd0

Please sign in to comment.