fix(logging): add setup_logging() call to CLI entry point

Ensure logging is properly initialized before any CLI commands execute.
This prevents loggers created at module level from being initialized
before the logging system is configured.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ashwin Bharambe 2025-10-21 11:00:55 -07:00
parent 9a43a461ec
commit 0eff56515d

View file

@ -6,6 +6,8 @@
import argparse
from llama_stack.log import setup_logging
from .stack import StackParser
from .stack.utils import print_subcommand_description
@ -42,6 +44,9 @@ class LlamaCLIParser:
def main():
# Initialize logging from environment variables before any other operations
setup_logging()
parser = LlamaCLIParser()
args = parser.parse_args()
parser.run(args)