MCPcopy
hub / github.com/claude-code-best/claude-code / logAntError

Function logAntError

src/utils/debug.ts:256–266  ·  view source on GitHub ↗
(context: string, error: unknown)

Source from the content-addressed store, hash-verified

254 * Logs errors for Ants only, always visible in production.
255 */
256export function logAntError(context: string, error: unknown): void {
257 if (process.env.USER_TYPE !== 'ant') {
258 return
259 }
260
261 if (error instanceof Error && error.stack) {
262 logForDebugging(`[ANT-ONLY] ${context} stack trace:\n${error.stack}`, {
263 level: 'error',
264 })
265 }
266}

Callers 8

queryLoopFunction · 0.85
maybeFunction · 0.85
_executeApiKeyHelperFunction · 0.85
runAwsAuthRefreshFunction · 0.85
runGcpAuthRefreshFunction · 0.85
getMcpHeadersFromHelperFunction · 0.85

Calls 1

logForDebuggingFunction · 0.70

Tested by

no test coverage detected