Skip to content

Commit 3c6b42e

Browse files
committed
Revert "Flush the log file for each write"
This reverts commit 344b2fa.
1 parent 5613813 commit 3c6b42e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

runusb/__main__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,13 +346,8 @@ def _log_output(self, pipe: IO[str]) -> None:
346346
347347
This is done in a separate thread to avoid blocking the main thread.
348348
"""
349-
log_fileno = self.handler.stream.fileno()
350-
351349
for line in iter(pipe.readline, ''):
352350
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)
356351
LOGGER.info('Process output finished')
357352

358353
def _rotate_old_logs(self, log_dir: str) -> None:

0 commit comments

Comments
 (0)