Skip to content

Commit 1bc66e8

Browse files
committed
refactor: Log agent card url as info and resolved card as debug
1 parent 2907aa3 commit 1bc66e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adk/agenticlayer/agent_to_a2a.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ async def create_runner() -> Runner:
7676

7777
# Get the agent card URL from environment variable *only*
7878
# At this point, we don't know the applications port and the host is unknown when running in k8s or similar
79-
# A2A_AGENT_CARD_URL is deprecated but still supported for backwards compatibility
80-
agent_card_url = os.environ.get("AGENT_A2A_RPC_URL", os.environ.get("A2A_AGENT_CARD_URL", None))
81-
logger.debug("Using agent card url: %s", agent_card_url)
79+
agent_card_url = os.environ.get("AGENT_A2A_RPC_URL", None)
80+
logger.info("Using agent card url: %s", agent_card_url)
8281

8382
# Build agent card
8483
card_builder = AgentCardBuilder(
@@ -87,6 +86,7 @@ async def create_runner() -> Runner:
8786
)
8887
# Build the agent card asynchronously
8988
agent_card = await card_builder.build()
89+
logger.debug("Built agent card: %s", agent_card)
9090

9191
# Create the A2A Starlette application
9292
a2a_app = A2AStarletteApplication(

0 commit comments

Comments
 (0)