1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 07:26:31 +08:00

Repeat frontend version warning at the end.

This way someone running ComfyUI with the command line is more likely to
actually see it.
This commit is contained in:
comfyanonymous
2025-03-12 07:13:40 -04:00
parent d2a0fb6bb0
commit f4411250f3
3 changed files with 18 additions and 1 deletions

View File

@@ -82,3 +82,17 @@ def setup_logger(log_level: str = 'INFO', capacity: int = 300, use_stdout: bool
logger.addHandler(stdout_handler)
logger.addHandler(stream_handler)
STARTUP_WARNINGS = []
def log_startup_warning(msg):
logging.warning(msg)
STARTUP_WARNINGS.append(msg)
def print_startup_warnings():
for s in STARTUP_WARNINGS:
logging.warning(s)
STARTUP_WARNINGS.clear()