From 536dc26c5347fa1e47af677ce0dd04109bb9f1de Mon Sep 17 00:00:00 2001 From: Talmaj Marinc Date: Sat, 23 May 2026 01:00:27 +0200 Subject: [PATCH] Make colored logs the default option. --- app/logger.py | 2 +- comfy/cli_args.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/logger.py b/app/logger.py index 4be4ac8de..d23822958 100644 --- a/app/logger.py +++ b/app/logger.py @@ -69,7 +69,7 @@ def on_flush(callback): if stderr_interceptor is not None: stderr_interceptor.on_flush(callback) -def setup_logger(log_level: str = 'INFO', capacity: int = 300, use_stdout: bool = False, color_logs: bool = False): +def setup_logger(log_level: str = 'INFO', capacity: int = 300, use_stdout: bool = False, color_logs: bool = True): global logs if logs: return diff --git a/comfy/cli_args.py b/comfy/cli_args.py index 95b2e14d2..57575e593 100644 --- a/comfy/cli_args.py +++ b/comfy/cli_args.py @@ -183,7 +183,7 @@ parser.add_argument("--multi-user", action="store_true", help="Enables per-user parser.add_argument("--verbose", default='INFO', const='DEBUG', nargs="?", choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'], help='Set the logging level') parser.add_argument("--log-stdout", action="store_true", help="Send normal process output to stdout instead of stderr (default).") -parser.add_argument("--color-logs", action="store_true", help="Enable ANSI colored log output in the terminal.") +parser.add_argument("--color-logs", action=argparse.BooleanOptionalAction, default=True, help="Enable ANSI colored log output in the terminal (default: enabled, use --no-color-logs to disable).") # The default built-in provider hosted under web/