mirror of https://github.com/status-im/consul.git
Log replication warnings when no error suppression is defined (#9320)
* Log replication warnings when no error suppression is defined * Add changelog file
This commit is contained in:
parent
6f1f679457
commit
aabdccdfa0
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
replication: Correctly log all replication warnings that should not be suppressed
|
||||
```
|
|
@ -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(err) {
|
||||
r.logger.Warn("replication error (will retry if still leader)", "error", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue