Skip to content

Commit 1a04f45

Browse files
author
MarcoFalke
committed
Merge #19832: p2p: Put disconnecting logs into BCLog::NET category
1816327 p2p: Put disconnecting logs into BCLog::NET category (Hennadii Stepanov) Pull request description: It's too noisy: ``` $ cat debug.log | wc -l 28529 $ cat debug.log | grep "Disconnecting and discouraging peer" | wc -l 10177 ``` ACKs for top commit: MarcoFalke: noban, addnode and local peers are still unconditionally logged (as they should), but this one can go into a category, so cr-ACK 1816327 practicalswift: ACK 1816327 for the reasons MarcoFalke gave above. ajtowns: ACK 1816327 Tree-SHA512: c312c1009090840659b2cb1364d8ad9b6ab8e742fc462aef169996d93c76c248507639a00257ed9d73a6916c01176b1793491b2305e92fdded5f9de0935b6ba6
2 parents d0ca394 + 1816327 commit 1a04f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3786,7 +3786,7 @@ bool PeerManager::MaybeDiscourageAndDisconnect(CNode& pnode)
37863786
}
37873787

37883788
// Normal case: Disconnect the peer and discourage all nodes sharing the address
3789-
LogPrintf("Disconnecting and discouraging peer %d!\n", peer_id);
3789+
LogPrint(BCLog::NET, "Disconnecting and discouraging peer %d!\n", peer_id);
37903790
if (m_banman) m_banman->Discourage(pnode.addr);
37913791
m_connman.DisconnectNode(pnode.addr);
37923792
return true;

0 commit comments

Comments
 (0)