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

Function logAntError

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

Source from the content-addressed store, hash-verified

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

Callers 8

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

Calls 1

logForDebuggingFunction · 0.85

Tested by

no test coverage detected