Files
Robert Wojciechowski 3058b11ff2 Remove list splitter/collector feature and refactor distributed modules
- 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
2026-03-07 05:22:09 +00:00

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}")