good morning!!!!

Skip to content
Snippets Groups Projects
Commit a7bced77 authored by Felix Lange's avatar Felix Lange
Browse files

p2p: log disconnect requests

This helps a lot with debugging.
parent 5ba51594
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment