diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-19 22:15:07 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-19 22:15:07 +0800 |
commit | a7bced779a599fb3f87a69a5f8bb8017b62dc0a3 (patch) | |
tree | 6069668b8a48aa1eb64dd127dd7fd61073cbd6d9 | |
parent | 5ba51594c7eb1f04b3636e6413de6d4eb70228d2 (diff) | |
download | go-tangerine-a7bced779a599fb3f87a69a5f8bb8017b62dc0a3.tar.gz go-tangerine-a7bced779a599fb3f87a69a5f8bb8017b62dc0a3.tar.zst go-tangerine-a7bced779a599fb3f87a69a5f8bb8017b62dc0a3.zip |
p2p: log disconnect requests
This helps a lot with debugging.
-rw-r--r-- | p2p/peer.go | 1 |
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: |