mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-24 05:10:18 +08:00
gracefully handle logs when they are never set up (not sure why this is occurring)
This commit is contained in:
parent
f507bec91a
commit
d9ee4137c7
@ -5,9 +5,10 @@ import threading
|
|||||||
from collections import deque
|
from collections import deque
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
logs = None
|
# initialize with sane defaults
|
||||||
stdout_interceptor = None
|
logs = deque(maxlen=1000)
|
||||||
stderr_interceptor = None
|
stdout_interceptor = sys.stdout
|
||||||
|
stderr_interceptor = sys.stderr
|
||||||
|
|
||||||
|
|
||||||
class LogInterceptor(io.TextIOWrapper):
|
class LogInterceptor(io.TextIOWrapper):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user