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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user