We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86816e0 commit 7e6dbe7Copy full SHA for 7e6dbe7
app/logger.py
@@ -14,7 +14,7 @@ class LogInterceptor(io.TextIOWrapper):
14
def __init__(self, stream, *args, **kwargs):
15
buffer = stream.buffer
16
encoding = stream.encoding
17
- super().__init__(buffer, *args, **kwargs, encoding=encoding)
+ super().__init__(buffer, *args, **kwargs, encoding=encoding, line_buffering=stream.line_buffering)
18
self._lock = threading.Lock()
19
self._flush_callbacks = []
20
self._logs_since_flush = []
0 commit comments