p2p: log disconnect requests

This helps a lot with debugging.
pull/532/head
Felix Lange 10 years ago
parent 5ba51594c7
commit a7bced779a
  1. 1
      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:

Loading…
Cancel
Save