Skip to content

Commit a7bced7

Browse files
committed
p2p: log disconnect requests
This helps a lot with debugging.
1 parent 5ba5159 commit a7bced7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎p2p/peer.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ func (p *Peer) handle(msg Msg) error {
198198
// no need to discard or for error checking, we'll close the
199199
// connection after this.
200200
rlp.Decode(msg.Payload, &reason)
201+
p.Debugf("Disconnect requested: %v\n", reason[0])
201202
p.Disconnect(DiscRequested)
202203
return discRequestedError(reason[0])
203204
case msg.Code < baseProtocolLength:

0 commit comments

Comments
 (0)