Skip to content

Commit

Permalink
Merge pull request #220 from kcalvinalvin/2024-11-16-add-debug-message
Browse files Browse the repository at this point in the history
peer: add debug message for readMessage
  • Loading branch information
kcalvinalvin authored Nov 16, 2024
2 parents de02a71 + 0710a70 commit 5fb3638
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions peer/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,8 @@ func (p *Peer) readMessage(encoding wire.MessageEncoding) (wire.Message, []byte,
p.cfg.Listeners.OnRead(p, n, msg, err)
}
if err != nil {
log.Debugf("error reading message from peer %v. %v",
p.String(), err)
return nil, nil, err
}

Expand Down

0 comments on commit 5fb3638

Please sign in to comment.