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.
1 parent 2cdb35d commit 0b6c460Copy full SHA for 0b6c460
runusb/__main__.py
@@ -270,6 +270,9 @@ def _setup_logging(self, log_dir: str) -> None:
270
os.path.join(log_dir, LOG_NAME),
271
mode='w', # Overwrite the log file
272
)
273
+ # Write through to avoid buffering the log file since the USB might be
274
+ # removed at any time
275
+ self.handler.stream.reconfigure(write_through=True)
276
REL_TIME_FILTER.reset_time_reference() # type: ignore[union-attr]
277
self.handler.setFormatter(TieredFormatter(
278
fmt='[%(reltime)08.3f - %(levelname)s] %(message)s',
0 commit comments