Skip to content

Commit fa55159

Browse files
author
MarcoFalke
committed
net: Log to net debug in MaybeDiscourageAndDisconnect except for noban and manual peers
1 parent 9bbf08b commit fa55159

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/net_processing.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4052,7 +4052,8 @@ bool PeerManagerImpl::MaybeDiscourageAndDisconnect(CNode& pnode, Peer& peer)
40524052
if (pnode.addr.IsLocal()) {
40534053
// We disconnect local peers for bad behavior but don't discourage (since that would discourage
40544054
// all peers on the same local address)
4055-
LogPrintf("Warning: disconnecting but not discouraging local peer %d!\n", peer.m_id);
4055+
LogPrint(BCLog::NET, "Warning: disconnecting but not discouraging %s peer %d!\n",
4056+
pnode.m_inbound_onion ? "inbound onion" : "local", peer.m_id);
40564057
pnode.fDisconnect = true;
40574058
return true;
40584059
}

0 commit comments

Comments
 (0)