mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 06:40:48 +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 datetime import datetime
|
||||
|
||||
logs = None
|
||||
stdout_interceptor = None
|
||||
stderr_interceptor = None
|
||||
# initialize with sane defaults
|
||||
logs = deque(maxlen=1000)
|
||||
stdout_interceptor = sys.stdout
|
||||
stderr_interceptor = sys.stderr
|
||||
|
||||
|
||||
class LogInterceptor(io.TextIOWrapper):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user