aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/peer.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-19 22:15:07 +0800
committerFelix Lange <fjl@twurst.com>2015-03-19 22:15:07 +0800
commita7bced779a599fb3f87a69a5f8bb8017b62dc0a3 (patch)
tree6069668b8a48aa1eb64dd127dd7fd61073cbd6d9 /p2p/peer.go
parent5ba51594c7eb1f04b3636e6413de6d4eb70228d2 (diff)
downloadgo-tangerine-a7bced779a599fb3f87a69a5f8bb8017b62dc0a3.tar.gz
go-tangerine-a7bced779a599fb3f87a69a5f8bb8017b62dc0a3.tar.zst
go-tangerine-a7bced779a599fb3f87a69a5f8bb8017b62dc0a3.zip
p2p: log disconnect requests
This helps a lot with debugging.
Diffstat (limited to 'p2p/peer.go')
-rw-r--r--p2p/peer.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/p2p/peer.go b/p2p/peer.go
index ee5199d78..6b97ea58d 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: