We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5613813 commit 3c6b42eCopy full SHA for 3c6b42e
runusb/__main__.py
@@ -346,13 +346,8 @@ def _log_output(self, pipe: IO[str]) -> None:
346
347
This is done in a separate thread to avoid blocking the main thread.
348
"""
349
- log_fileno = self.handler.stream.fileno()
350
-
351
for line in iter(pipe.readline, ''):
352
USERCODE_LOGGER.log(USERCODE_LEVEL, line.rstrip('\n'))
353
354
- # Forcefully sync the file, regardless of how it was mounted
355
- os.fsync(log_fileno)
356
LOGGER.info('Process output finished')
357
358
def _rotate_old_logs(self, log_dir: str) -> None:
0 commit comments