1
0

tests: enable verbose stderr logging

note: print() statements and stderr logging don't have a consistent printing order.
Either can buffer log lines and flush them later, and the buffers are independent.
This commit is contained in:
SomberNight
2025-06-09 17:32:54 +00:00
parent ffb12b2833
commit 09e412baf8
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ from electrum.logging import Logger
FAST_TESTS = False
electrum.logging._configure_stderr_logging()
electrum.logging._configure_stderr_logging(verbosity="*")
electrum.util.AS_LIB_USER_I_WANT_TO_MANAGE_MY_OWN_ASYNCIO_LOOP = True

View File

@@ -38,7 +38,7 @@ class MockInterface(Interface):
async def get_block_header(self, height: int, *, mode: ChainResolutionMode) -> dict:
assert self.q.qsize() > 0, (height, mode)
item = await self.q.get()
print("step with height", height, item)
self.logger.debug(f"step with {height=}. {item=}")
assert item['block_height'] == height, (item['block_height'], height)
assert mode in item['mock'], (mode, item)
return item