rename comfy/logging.py to comfy/internal_logging.py (#15231)

This avoids name collision (circular imports) for external custom nodes,
for which the comfy path is pushed into sys.path so Python's own logging module
is shadowed otherwise.

fixes: #15229
This commit is contained in:
Oliver Freyermuth
2026-08-02 22:20:27 +02:00
committed by GitHub
parent 611f2a4e0f
commit b53e247c94
6 changed files with 6 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ import os
import sys
import threading
import comfy.logging
import comfy.internal_logging
ANSI_NAMED_COLORS = {
'black': '\033[30m',
@@ -91,7 +91,7 @@ def on_flush(callback):
def get_log_level(level):
return comfy.logging.DETAIL if level == "DETAIL" else logging.getLevelName(level)
return comfy.internal_logging.DETAIL if level == "DETAIL" else logging.getLevelName(level)
def setup_logger(log_level: str = 'INFO', file_outputs=None, capacity: int = 300, use_stdout: bool = False):