fix: call setup_logging early to apply category-specific log levels

Category-specific log levels from LLAMA_STACK_LOGGING were not applied to
loggers created before setup_logging() was called. This fix moves the
setup_logging() call earlier in the initialization sequence to ensure all
loggers respect their configured levels regardless of initialization timing.

Closes: #4252

Signed-off-by: Derek Higgins <derekh@redhat.com>
This commit is contained in:
Derek Higgins 2025-12-02 11:03:19 +00:00
parent d1a7bc36a2
commit b9503b11e6
3 changed files with 9 additions and 7 deletions

View file

@ -14,6 +14,11 @@ import tempfile
import time
from urllib.parse import urlparse
# Initialize logging early before any loggers get created
from llama_stack.log import setup_logging
setup_logging()
import pytest
import requests
import yaml