Skip to content

Commit 7e6dbe7

Browse files
committed
Fix output flush on linux
1 parent 86816e0 commit 7e6dbe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class LogInterceptor(io.TextIOWrapper):
1414
def __init__(self, stream, *args, **kwargs):
1515
buffer = stream.buffer
1616
encoding = stream.encoding
17-
super().__init__(buffer, *args, **kwargs, encoding=encoding)
17+
super().__init__(buffer, *args, **kwargs, encoding=encoding, line_buffering=stream.line_buffering)
1818
self._lock = threading.Lock()
1919
self._flush_callbacks = []
2020
self._logs_since_flush = []

0 commit comments

Comments
 (0)