Skip to content

Commit 11571c3

Browse files
wukathcopybara-github
authored andcommitted
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 <[email protected]> PiperOrigin-RevId: 828161281
1 parent 432d30a commit 11571c3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/google/adk/tools/base_authenticated_tool.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,9 @@ def __init__(
6969
if auth_config and auth_config.auth_scheme:
7070
self._credentials_manager = CredentialManager(auth_config=auth_config)
7171
else:
72-
logger.warning(
73-
"auth_config or auth_config.auth_scheme is missing. Will skip"
74-
" authentication.Using FunctionTool instead if authentication is not"
75-
" required."
72+
logger.debug(
73+
"auth_config or auth_config.auth_scheme is missing, so authentication"
74+
" will be skipped."
7675
)
7776
self._credentials_manager = None
7877
self._response_for_auth_required = response_for_auth_required

0 commit comments

Comments
 (0)