fix(cli): pass log_level to uvicorn in web and api_server commands (#4144)

Explicitly pass the log_level parameter to uvicorn.Config in both
adk web and adk api_server commands. This ensures that Uvicorn's
internal logging respects the configured log level.

Closes #4139
This commit is contained in:
Kotaro Saito
2026-01-15 02:48:32 +09:00
committed by GitHub
parent 79fcddb39f
commit 38d52b2476
+2
View File
@@ -1291,6 +1291,7 @@ def cli_web(
host=host,
port=port,
reload=reload,
log_level=log_level.lower(),
)
server = uvicorn.Server(config)
@@ -1367,6 +1368,7 @@ def cli_api_server(
host=host,
port=port,
reload=reload,
log_level=log_level.lower(),
)
server = uvicorn.Server(config)
server.run()