peer: display the src peer when logging read error
This commit is contained in:
parent
318cfb0080
commit
019edc9035
3
peer.go
3
peer.go
@ -359,7 +359,8 @@ out:
|
||||
for atomic.LoadInt32(&p.disconnect) == 0 {
|
||||
nextMsg, _, err := p.readNextMessage()
|
||||
if err != nil {
|
||||
peerLog.Infof("unable to read message: %v", err)
|
||||
peerLog.Infof("unable to read message from %v: %v",
|
||||
p, err)
|
||||
|
||||
switch err.(type) {
|
||||
// If this is just a message we don't yet recognize,
|
||||
|
Loading…
Reference in New Issue
Block a user