From 6bc1b978a6008cd177713a791ca4b6835f2d1da3 Mon Sep 17 00:00:00 2001 From: Charlie Doern Date: Mon, 18 Aug 2025 13:12:55 -0400 Subject: [PATCH] fix: remove category prints commands where the output is important `llama stack build --show-deps` (soon to be `llama stack show`) print some log.py `cprint`'s on _every_ execution of the CLI These prints aren't necessary as the user is the one setting the logging config, they probably don't need to be alerted that these levels are being set Signed-off-by: Charlie Doern --- llama_stack/log.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/llama_stack/log.py b/llama_stack/log.py index 7507aface..d67bd1b61 100644 --- a/llama_stack/log.py +++ b/llama_stack/log.py @@ -7,13 +7,11 @@ import logging import os import re -import sys from logging.config import dictConfig from rich.console import Console from rich.errors import MarkupError from rich.logging import RichHandler -from termcolor import cprint from llama_stack.core.datatypes import LoggingConfig @@ -66,7 +64,6 @@ def config_to_category_levels(category: str, level: str): category_levels["root"] = level_value elif category in CATEGORIES: category_levels[category] = level_value - logging.info(f"Setting '{category}' category to level '{level}'.") else: logging.warning(f"Unknown logging category: {category}. No changes made.") return category_levels @@ -256,7 +253,6 @@ def get_logger( env_config = os.environ.get("LLAMA_STACK_LOGGING", "") if env_config: - cprint(f"Environment variable LLAMA_STACK_LOGGING found: {env_config}", color="yellow", file=sys.stderr) _category_levels.update(parse_environment_config(env_config)) log_file = os.environ.get("LLAMA_STACK_LOG_FILE")