Commit 3b4fb05
Log exceptions in tool calls to match resource/prompt handlers
_handle_call_tool was silently catching exceptions and returning
CallToolResult(is_error=True) without any server-side logging.
The equivalent handlers for resources and prompts both call
logger.exception() in their error branches. Added the same logging
for tool calls so server operators can see tool execution failures.
Fixes #32661 parent 57394b0 commit 3b4fb05
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| 425 | + | |
425 | 426 | | |
426 | 427 | | |
427 | 428 | | |
| |||
0 commit comments