mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-30 02:57:06 +08:00
Fix output flush on linux
This commit is contained in:
parent
86816e07ca
commit
7e6dbe798a
@ -14,7 +14,7 @@ class LogInterceptor(io.TextIOWrapper):
|
|||||||
def __init__(self, stream, *args, **kwargs):
|
def __init__(self, stream, *args, **kwargs):
|
||||||
buffer = stream.buffer
|
buffer = stream.buffer
|
||||||
encoding = stream.encoding
|
encoding = stream.encoding
|
||||||
super().__init__(buffer, *args, **kwargs, encoding=encoding)
|
super().__init__(buffer, *args, **kwargs, encoding=encoding, line_buffering=stream.line_buffering)
|
||||||
self._lock = threading.Lock()
|
self._lock = threading.Lock()
|
||||||
self._flush_callbacks = []
|
self._flush_callbacks = []
|
||||||
self._logs_since_flush = []
|
self._logs_since_flush = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user