MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / debugLog

Function debugLog

packages/hosts/mcp/src/tool-server-core.ts:1073–1081  ·  view source on GitHub ↗
(event: string, data: Record<string, unknown>)

Source from the content-addressed store, hash-verified

1071 const context = yield* Effect.context<never>();
1072 const debugEnabled = config.debug ?? readDebugDefault();
1073 const debugLog = (event: string, data: Record<string, unknown>) => {
1074 if (!debugEnabled) return;
1075 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: debug logging must tolerate non-serializable SDK capability snapshots
1076 try {
1077 console.error(`[executor:mcp] ${event} ${JSON.stringify(data)}`);
1078 } catch {
1079 console.error(`[executor:mcp] ${event}`, data);
1080 }
1081 };
1082 const elicitationMode =
1083 config.elicitationMode ??
1084 ({

Callers 5

executeCodeFunction · 0.85
executeCodeFromAppFunction · 0.85
resumeExecutionFunction · 0.85
syncToolAvailabilityFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected