We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e05987f + 0b6c460 commit 8bb518aCopy full SHA for 8bb518a
runusb/__main__.py
@@ -346,6 +346,9 @@ def _setup_logging(self, log_dir: str) -> None:
346
os.path.join(log_dir, LOG_NAME),
347
mode='w', # Overwrite the log file
348
)
349
+ # Write through to avoid buffering the log file since the USB might be
350
+ # removed at any time
351
+ self.handler.stream.reconfigure(write_through=True)
352
REL_TIME_FILTER.reset_time_reference() # type: ignore[union-attr]
353
self.handler.setFormatter(TieredFormatter(
354
fmt='[%(reltime)08.3f - %(levelname)s] %(message)s',
0 commit comments