mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-15 00:59:38 +02:00
Merge bitcoin/bitcoin#34051: log: Remove brittle and confusing LogPrintLevel
fa8a5d215clog: Remove brittle and confusing LogPrintLevel (MarcoFalke)fac24bbec8test: Clarify logging_SeverityLevels test (MarcoFalke)f273167661ipc: separate log statements per level (stickies-v)94c51ae540libevent: separate log statements per level (stickies-v) Pull request description: `LogPrintLevel` has many issues: * It encourages to log several levels in one source location. This is problematic, because all levels (even warnings and errors) will be rate limited equally for the same location. * Its warning and error logs are specially formatted compared to all other warning and error logs in the codebase, making them harder to spot (both in the debug log and in the code). * It is verbose to type and read. * It is confusing, because the majority of code uses the `Log$LEVEL(...)` macros. Having less ways to achieve the same makes the code more consistent and easier to review. Fix all issues by removing it ACKs for top commit: stickies-v: re-ACKfa8a5d215cajtowns: ACKfa8a5d215cpablomartin4btc: re-ACKfa8a5d215cTree-SHA512: 9fbb04962d9c26e566338694a7725b3c0e88ef733322d890bcc6aeddb45266c754e7c885c69bbfebd1588cc09912c6784cfc00e69882f1271a8c87d201490478
This commit is contained in:
@@ -23,12 +23,12 @@ class I2PSessions(BitcoinTestFramework):
|
||||
|
||||
self.log.info("Ensure we create a persistent session when -i2pacceptincoming=1")
|
||||
node0 = self.nodes[0]
|
||||
with node0.assert_debug_log(expected_msgs=["Creating persistent SAM session"]):
|
||||
with node0.assert_debug_log(expected_msgs=["Creating persistent I2P SAM session"]):
|
||||
node0.addnode(node=addr, command="onetry")
|
||||
|
||||
self.log.info("Ensure we create a transient session when -i2pacceptincoming=0")
|
||||
node1 = self.nodes[1]
|
||||
with node1.assert_debug_log(expected_msgs=["Creating transient SAM session"]):
|
||||
with node1.assert_debug_log(expected_msgs=["Creating transient I2P SAM session"]):
|
||||
node1.addnode(node=addr, command="onetry")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user