From 11571c37ab948d43cbaa3a1d82522256dfe4d467 Mon Sep 17 00:00:00 2001 From: Kathy Wu Date: Tue, 4 Nov 2025 15:33:41 -0800 Subject: [PATCH] fix: Reduce logging spam for MCP tools without authentication Users were getting spammed with this log even though their tools didn't require authentication. To fix, reduce the log level to DEBUG so that it doesn't show up by default. Co-authored-by: Kathy Wu PiperOrigin-RevId: 828161281 --- src/google/adk/tools/base_authenticated_tool.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/google/adk/tools/base_authenticated_tool.py b/src/google/adk/tools/base_authenticated_tool.py index 043bc872..6279d4f7 100644 --- a/src/google/adk/tools/base_authenticated_tool.py +++ b/src/google/adk/tools/base_authenticated_tool.py @@ -69,10 +69,9 @@ class BaseAuthenticatedTool(BaseTool): if auth_config and auth_config.auth_scheme: self._credentials_manager = CredentialManager(auth_config=auth_config) else: - logger.warning( - "auth_config or auth_config.auth_scheme is missing. Will skip" - " authentication.Using FunctionTool instead if authentication is not" - " required." + logger.debug( + "auth_config or auth_config.auth_scheme is missing, so authentication" + " will be skipped." ) self._credentials_manager = None self._response_for_auth_required = response_for_auth_required