force flush print log in new line

This commit is contained in:
刘雪峰
2025-05-11 18:34:25 +08:00
parent 1c932a49ba
commit 7d4e754dd8
+2
View File
@@ -18,8 +18,10 @@ class StdTimeFilter:
if message == '\n':
if self.is_stdout:
old_stdout.write(message)
old_stdout.flush()
else:
old_stderr.write(message)
old_stderr.flush()
self.newline = True
elif self.newline:
if self.is_stdout: