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:
Charlie Doern 2025-12-16 10:37:18 -05:00 committed by GitHub
parent 700663028f
commit 12116467f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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())

View file

@ -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))