- Remove DistributedListSplitter and DistributedListCollector nodes - Remove /distributed/init_list_queue and /distributed/request_list_item endpoints - Clean up all references from prompt_transform, queue_orchestration, constants, and tests - Refactor and reorganize distributed modules for quality improvements
22 lines
573 B
Python
22 lines
573 B
Python
"""
|
|
Shared logging utilities for ComfyUI-Distributed.
|
|
"""
|
|
from .config import get_debug_enabled
|
|
|
|
|
|
def is_debug_enabled() -> bool:
|
|
"""Check whether debug logging is currently enabled."""
|
|
try:
|
|
return get_debug_enabled(default=False)
|
|
except Exception:
|
|
return False
|
|
|
|
def debug_log(message: str) -> None:
|
|
"""Log debug messages only if debug is enabled in config."""
|
|
if is_debug_enabled():
|
|
print(f"[Distributed] {message}")
|
|
|
|
def log(message: str) -> None:
|
|
"""Always log important messages."""
|
|
print(f"[Distributed] {message}")
|