mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-19 19:29:45 +02:00
log: Remove function name from init logs
It is redundant with -logsourcelocations and the log messages are clearer without it. Also, remove a double-space. Also, add braces around `if` touched in the next commit. This tiny behavior change requires a test fixup.
This commit is contained in:
@@ -225,7 +225,7 @@ class PruneTest(BitcoinTestFramework):
|
||||
def reorg_back(self):
|
||||
# Verify that a block on the old main chain fork has been pruned away
|
||||
assert_raises_rpc_error(-1, "Block not available (pruned data)", self.nodes[2].getblock, self.forkhash)
|
||||
with self.nodes[2].assert_debug_log(expected_msgs=['block verification stopping at height', '(no data)']):
|
||||
with self.nodes[2].assert_debug_log(expected_msgs=["Block verification stopping at height", "(no data)"]):
|
||||
assert not self.nodes[2].verifychain(checklevel=4, nblocks=0)
|
||||
self.log.info(f"Will need to redownload block {self.forkheight}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user