mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-05 10:00:28 +08:00
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
11 lines
197 B
Python
11 lines
197 B
Python
import logging
|
|
|
|
|
|
DETAIL = 15
|
|
logging.addLevelName(DETAIL, "DETAIL")
|
|
|
|
|
|
def detail(message, *args, **kwargs):
|
|
kwargs.setdefault("stacklevel", 2)
|
|
logging.log(DETAIL, message, *args, **kwargs)
|