Skip to content

Commit 380a886

Browse files
FIX: PAAL 206 supress excessive logging
1 parent cfeed55 commit 380a886

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

adk/agenticlayer/agent_to_a2a.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ def to_a2a(agent: BaseAgent) -> Starlette:
4343
app = to_a2a(agent)
4444
# Then run with: uvicorn module:app
4545
"""
46+
# Suppress Gemini/LiteLLM warnings
47+
os.environ.setdefault("ADK_SUPPRESS_GEMINI_LITELLM_WARNINGS", "true")
48+
4649
# Set up ADK logging to ensure logs are visible when using uvicorn directly
4750
log_level = os.environ.get("LOGLEVEL", "INFO")
4851
setup_adk_logger(log_level) # type: ignore

0 commit comments

Comments
 (0)