Skip to content

Commit 87c3713

Browse files
committed
fix: override uvicorn log level to match agent log level
Signed-off-by: Casper Nielsen <casper@diagrid.io>
1 parent 39b31e8 commit 87c3713

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dapr_agents/workflow/runners/agent.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,12 @@ def serve(
493493
"install uvicorn or pass an existing FastAPI app."
494494
) from exc
495495

496-
uvicorn.run(fastapi_app, host=host, port=port)
496+
uvicorn.run(
497+
fastapi_app,
498+
host=host,
499+
port=port,
500+
log_level=logging.getLevelName(logger.getEffectiveLevel()).lower(),
501+
)
497502

498503
return fastapi_app
499504

0 commit comments

Comments
 (0)