(serverName: string, error: unknown)
| 297 | } |
| 298 | |
| 299 | export function logMCPError(serverName: string, error: unknown): void { |
| 300 | try { |
| 301 | // If sink not attached, queue the event |
| 302 | if (errorLogSink === null) { |
| 303 | errorQueue.push({ type: 'mcpError', serverName, error }) |
| 304 | return |
| 305 | } |
| 306 | |
| 307 | errorLogSink.logMCPError(serverName, error) |
| 308 | } catch { |
| 309 | // Silently fail |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | export function logMCPDebug(serverName: string, message: string): void { |
| 314 | try { |
no test coverage detected