fix: only log if peer was not flagged for abuse
This commit is contained in:
parent
7d34ac37db
commit
d0d6745d60
|
@ -424,7 +424,9 @@ func (p *P2PImpl) OnNewPeerListen(peer net.Peer, verifyId bool) {
|
|||
})
|
||||
|
||||
onError := net.ErrorCallback(func(args ...interface{}) {
|
||||
p.logger.Error("peer error", zap.Any("args", args))
|
||||
if !peer.Abused() {
|
||||
p.logger.Error("peer error", zap.Any("args", args))
|
||||
}
|
||||
})
|
||||
|
||||
peer.ListenForMessages(func(message []byte) error {
|
||||
|
|
Loading…
Reference in New Issue