parent
178e60a66e
commit
29b790b9c8
1 changed files with 3 additions and 2 deletions
5
peer.go
5
peer.go
|
@ -1086,14 +1086,15 @@ out:
|
||||||
// allowed errors.
|
// allowed errors.
|
||||||
if cfg.RegressionTest && p.isAllowedByRegression(err) {
|
if cfg.RegressionTest && p.isAllowedByRegression(err) {
|
||||||
peerLog.Errorf("Allowed regression test "+
|
peerLog.Errorf("Allowed regression test "+
|
||||||
"error: %v", err)
|
"error from %s: %v", err, p.addr)
|
||||||
idleTimer.Reset(idleTimeoutMinutes * time.Minute)
|
idleTimer.Reset(idleTimeoutMinutes * time.Minute)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only log the error if we're not forcibly disconnecting.
|
// Only log the error if we're not forcibly disconnecting.
|
||||||
if atomic.LoadInt32(&p.disconnect) == 0 {
|
if atomic.LoadInt32(&p.disconnect) == 0 {
|
||||||
p.logError("Can't read message: %v", err)
|
p.logError("Can't read message from %s: %v",
|
||||||
|
p.addr, err)
|
||||||
}
|
}
|
||||||
break out
|
break out
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue