mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 20:32:25 +00:00
fix: uvicorn respect log_config
currently if a user does something like `LLAMA_STACK_LOG_FILE=foobar.log` the uvicorn logs do not end up in that file meaning during testing, it looks like a server gets no requests. This is problematic as it can lead users to believe they have misconfigured their server when in reality the logging config is just incorrect. Signed-off-by: Charlie Doern <cdoern@redhat.com>
This commit is contained in:
parent
019ddda138
commit
dffacae2de
1 changed files with 1 additions and 0 deletions
|
|
@ -592,6 +592,7 @@ def main(args: argparse.Namespace | None = None):
|
||||||
"port": port,
|
"port": port,
|
||||||
"lifespan": "on",
|
"lifespan": "on",
|
||||||
"log_level": logger.getEffectiveLevel(),
|
"log_level": logger.getEffectiveLevel(),
|
||||||
|
"log_config": logger_config,
|
||||||
}
|
}
|
||||||
if ssl_config:
|
if ssl_config:
|
||||||
uvicorn_config.update(ssl_config)
|
uvicorn_config.update(ssl_config)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue