Skip to content

Commit 6004fea

Browse files
waleedlatif1claude
andcommitted
fix(processing): restore disconnect error logging in MCP test-connection
Revert unrelated debug log removal — this file isn't part of the processing improvements and the log aids connection leak detection. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5a8e611 commit 6004fea

File tree

1 file changed

+3
-1
lines changed
  • apps/sim/app/api/mcp/servers/test-connection

1 file changed

+3
-1
lines changed

apps/sim/app/api/mcp/servers/test-connection/route.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ export const POST = withMcpAuth('write')(
172172
if (client) {
173173
try {
174174
await client.disconnect()
175-
} catch (_) {}
175+
} catch (disconnectError) {
176+
logger.debug(`[${requestId}] Test client disconnect error (expected):`, disconnectError)
177+
}
176178
}
177179
}
178180

0 commit comments

Comments
 (0)