mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 23:39:48 +00:00
fix: remove run config from logs (#4395)
# What does this PR do? since run.yaml is gone, update logs to say "stack config" or "stack configuration" rather than run ## Test Plan check logs Signed-off-by: Charlie Doern <cdoern@redhat.com>
This commit is contained in:
parent
700663028f
commit
12116467f5
2 changed files with 2 additions and 2 deletions
|
|
@ -166,7 +166,7 @@ class StackRun(Subcommand):
|
||||||
config_file = None
|
config_file = None
|
||||||
|
|
||||||
if config_file:
|
if config_file:
|
||||||
logger.info(f"Using run configuration: {config_file}")
|
logger.info(f"Using stack configuration: {config_file}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
config_dict = yaml.safe_load(config_file.read_text())
|
config_dict = yaml.safe_load(config_file.read_text())
|
||||||
|
|
|
||||||
|
|
@ -512,7 +512,7 @@ def create_app() -> StackApp:
|
||||||
|
|
||||||
def _log_run_config(run_config: StackConfig):
|
def _log_run_config(run_config: StackConfig):
|
||||||
"""Logs the run config with redacted fields and disabled providers removed."""
|
"""Logs the run config with redacted fields and disabled providers removed."""
|
||||||
logger.info("Run configuration:")
|
logger.info("Stack Configuration:")
|
||||||
safe_config = redact_sensitive_fields(run_config.model_dump(mode="json"))
|
safe_config = redact_sensitive_fields(run_config.model_dump(mode="json"))
|
||||||
clean_config = remove_disabled_providers(safe_config)
|
clean_config = remove_disabled_providers(safe_config)
|
||||||
logger.info(yaml.dump(clean_config, indent=2))
|
logger.info(yaml.dump(clean_config, indent=2))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue