aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-02-16 13:29:31 +0100
committerMarcoFalke <falke.marco@gmail.com>2021-02-16 13:29:00 +0100
commitfa55159b9ede4a915f8ef9e5b90e3e99eadedf91 (patch)
treedf89d2b4d0edf7ff1c5e0456b33b22fc44ff6743
parent9bbf08bf98487eeb75f143c120cfd544ea3135fb (diff)
net: Log to net debug in MaybeDiscourageAndDisconnect except for noban and manual peers
-rw-r--r--src/net_processing.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 881f5d7297..22d9fe5ba6 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -4052,7 +4052,8 @@ bool PeerManagerImpl::MaybeDiscourageAndDisconnect(CNode& pnode, Peer& peer)
if (pnode.addr.IsLocal()) {
// We disconnect local peers for bad behavior but don't discourage (since that would discourage
// 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;
return true;
}