net: Log to net debug in MaybeDiscourageAndDisconnect except for noban and manual peers

pull/20845/head
MarcoFalke 4 years ago
parent 9bbf08bf98
commit fa55159b9e
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

@ -4052,7 +4052,8 @@ bool PeerManagerImpl::MaybeDiscourageAndDisconnect(CNode& pnode, Peer& peer)
if (pnode.addr.IsLocal()) { if (pnode.addr.IsLocal()) {
// We disconnect local peers for bad behavior but don't discourage (since that would discourage // We disconnect local peers for bad behavior but don't discourage (since that would discourage
// all peers on the same local address) // all peers on the same local address)
LogPrintf("Warning: disconnecting but not discouraging local peer %d!\n", peer.m_id); LogPrint(BCLog::NET, "Warning: disconnecting but not discouraging %s peer %d!\n",
pnode.m_inbound_onion ? "inbound onion" : "local", peer.m_id);
pnode.fDisconnect = true; pnode.fDisconnect = true;
return true; return true;
} }

Loading…
Cancel
Save