mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-27 06:28:50 +00:00
fix: logger usage
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
This commit is contained in:
parent
313d0d809b
commit
5115801835
49 changed files with 118 additions and 98 deletions
|
@ -27,6 +27,9 @@ from pathlib import Path
|
|||
ALLOWED_LOGGING_IMPORTS = {
|
||||
"llama_stack/log.py", # The logger implementation itself needs logging
|
||||
"log.py", # When running from within llama_stack directory
|
||||
"llama_stack/providers/utils/telemetry/tracing.py", # Telemetry handler needs logging classes
|
||||
"providers/utils/telemetry/tracing.py", # When running from llama_stack directory
|
||||
"tracing.py", # When running from providers/utils/telemetry directory
|
||||
}
|
||||
|
||||
# Additional patterns for files that may legitimately need logging
|
||||
|
@ -44,10 +47,19 @@ ALLOWED_PATTERNS = {
|
|||
"llama_stack/distribution/request_headers.py",
|
||||
"llama_stack/distribution/server/server.py",
|
||||
"llama_stack/distribution/utils/",
|
||||
# Distribution files when run from llama_stack directory
|
||||
"distribution/build.py",
|
||||
"distribution/configure.py",
|
||||
"distribution/library_client.py",
|
||||
"distribution/request_headers.py",
|
||||
"distribution/server/server.py",
|
||||
"distribution/utils/",
|
||||
# Inline providers might need direct logging control
|
||||
"llama_stack/providers/inline/",
|
||||
"providers/inline/",
|
||||
# Provider utilities might need direct logging
|
||||
"llama_stack/providers/utils/",
|
||||
"providers/utils/",
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue