Commit 1a53bc7
committed
fix: log exceptions in _handle_call_tool at ERROR level
Resource and prompt handlers already call logger.exception() when an
error occurs. Tool calls were silently swallowing exceptions into
CallToolResult(is_error=True) with no server-side log, making it
impossible for operators to diagnose tool failures without client-side
visibility.
Adds logger.exception() before the is_error return in _handle_call_tool,
matching the pattern used in _handle_read_resource and _handle_get_prompt.
Fixes #3266
Signed-off-by: Radhakrishnan Panchayappan <gingeekrishna@gmail.com>
Signed-off-by: Radhakrishnan Pachyappan <gingeekrishna@gmail.com>1 parent a4f4ccd commit 1a53bc7
2 files changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
424 | 425 | | |
425 | 426 | | |
426 | 427 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
122 | 148 | | |
123 | 149 | | |
124 | 150 | | |
| |||
0 commit comments