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

Function addToInMemoryErrorLog

src/utils/log.ts:69–77  ·  view source on GitHub ↗
(errorInfo: {
  error: string
  timestamp: string
})

Source from the content-addressed store, hash-verified

67let inMemoryErrorLog: Array<{ error: string; timestamp: string }> = []
68
69function addToInMemoryErrorLog(errorInfo: {
70 error: string
71 timestamp: string
72}): void {
73 if (inMemoryErrorLog.length >= MAX_IN_MEMORY_ERRORS) {
74 inMemoryErrorLog.shift() // Remove oldest error
75 }
76 inMemoryErrorLog.push(errorInfo)
77}
78
79/**
80 * Sink interface for the error logging backend

Callers 1

logErrorFunction · 0.70

Calls 2

shiftMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected