From a7bced779a599fb3f87a69a5f8bb8017b62dc0a3 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 19 Mar 2015 15:15:07 +0100 Subject: [PATCH] p2p: log disconnect requests This helps a lot with debugging. --- p2p/peer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/peer.go b/p2p/peer.go index ee5199d78f..6b97ea58d9 100644 --- a/p2p/peer.go +++ b/p2p/peer.go @@ -198,6 +198,7 @@ func (p *Peer) handle(msg Msg) error { // no need to discard or for error checking, we'll close the // connection after this. rlp.Decode(msg.Payload, &reason) + p.Debugf("Disconnect requested: %v\n", reason[0]) p.Disconnect(DiscRequested) return discRequestedError(reason[0]) case msg.Code < baseProtocolLength: