We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f55f11 commit 5e0e00fCopy full SHA for 5e0e00f
src/mcp_agent/agents/agent.py
@@ -709,10 +709,9 @@ def _annotate_span_for_tools_result(result: ListToolsResult):
709
f"Filtered tools: {[name for name, _ in filtered_out_tools[:10]]}"
710
+ ("..." if len(filtered_out_tools) > 10 else "")
711
)
712
- # Log detailed reasons at trace level (if trace logging is available)
713
- if logger.isEnabledFor(10): # TRACE level is usually 10
714
- for tool_name, reason in filtered_out_tools:
715
- logger.log(10, f"Filtered out '{tool_name}': {reason}")
+
+ for tool_name, reason in filtered_out_tools:
+ logger.debug(f"Filtered out '{tool_name}': {reason}")
716
else:
717
logger.debug(
718
f"Tool filter applied: All {len(result.tools)} tools passed the filter"
0 commit comments