Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2cdb35d

Browse files
committedJul 7, 2024·
Revert "Flush the log file for each write"
This reverts commit 344b2fa.
1 parent 344b2fa commit 2cdb35d

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
@@ -286,13 +286,8 @@ def _log_output(self, pipe: IO[str]) -> None:
286286
287287
This is done in a separate thread to avoid blocking the main thread.
288288
"""
289-
log_fileno = self.handler.stream.fileno()
290-
291289
for line in iter(pipe.readline, ''):
292290
self.logger.log(USERCODE_LEVEL, line.rstrip('\n'))
293-
294-
# Forcefully sync the file, regardless of how it was mounted
295-
os.fsync(log_fileno)
296291
LOGGER.info('Process output finished')
297292

298293
def _set_leds(self) -> None:

0 commit comments

Comments
 (0)
Please sign in to comment.