Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/google/adk/a2a/utils/agent_to_a2a.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,7 @@ async def lifespan(app):

app = to_a2a(agent, task_store=task_store, lifespan=lifespan)
"""
# Set up ADK logging to ensure logs are visible when using uvicorn directly
adk_logger = logging.getLogger("google_adk")
adk_logger.setLevel(logging.INFO)

def create_runner() -> Runner:
"""Create a runner for the agent or workflow."""
Expand Down
7 changes: 7 additions & 0 deletions tests/unittests/a2a/utils/test_agent_to_a2a.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,13 @@ def test_to_a2a_returns_starlette_app(

assert result == mock_app

def test_to_a2a_keeps_configured_adk_log_level(self, caplog):
"""to_a2a leaves the application's "google_adk" logger level unchanged."""
with caplog.at_level(logging.WARNING, logger="google_adk"):
to_a2a(self.mock_agent)

assert logging.getLogger("google_adk").level == logging.WARNING

# ---------------------------------------------------------------------------
# Behavioral hosting checks (real Starlette; drive lifespan; assert routes).
# ---------------------------------------------------------------------------
Expand Down
Loading