mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
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:
parent
d1a7bc36a2
commit
b9503b11e6
3 changed files with 9 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue