Skip to content

Commit 174fd67

Browse files
authored
main: Load aimdo after logger is setup (Comfy-Org#12743)
This was too early. Aimdo can use the logger in error paths and this causes a rogue default init if aimdo has something to log.
1 parent 09bcbdd commit 174fd67

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
from comfy_execution.utils import get_executing_context
1717
from comfy_api import feature_flags
1818

19-
import comfy_aimdo.control
20-
21-
if enables_dynamic_vram():
22-
comfy_aimdo.control.init()
23-
2419
if __name__ == "__main__":
2520
#NOTE: These do not do anything on core ComfyUI, they are for custom nodes.
2621
os.environ['HF_HUB_DISABLE_TELEMETRY'] = '1'
2722
os.environ['DO_NOT_TRACK'] = '1'
2823

2924
setup_logger(log_level=args.verbose, use_stdout=args.log_stdout)
3025

26+
import comfy_aimdo.control
27+
28+
if enables_dynamic_vram():
29+
comfy_aimdo.control.init()
30+
3131
if os.name == "nt":
3232
os.environ['MIMALLOC_PURGE_DELAY'] = '0'
3333

0 commit comments

Comments
 (0)