mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 23:00:51 +08:00
Merge 600e44e84f into a60b7b86c5
This commit is contained in:
commit
8a9e734b29
@ -32,7 +32,10 @@ class LogInterceptor(io.TextIOWrapper):
|
|||||||
super().write(data)
|
super().write(data)
|
||||||
|
|
||||||
def flush(self):
|
def flush(self):
|
||||||
super().flush()
|
try:
|
||||||
|
super().flush()
|
||||||
|
except (OSError, ValueError):
|
||||||
|
pass
|
||||||
for cb in self._flush_callbacks:
|
for cb in self._flush_callbacks:
|
||||||
cb(self._logs_since_flush)
|
cb(self._logs_since_flush)
|
||||||
self._logs_since_flush = []
|
self._logs_since_flush = []
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user