MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / addToInMemoryErrorLog

Function addToInMemoryErrorLog

source code/utils/log.ts:71–79  ·  view source on GitHub ↗
(errorInfo: {
  error: string
  timestamp: string
})

Source from the content-addressed store, hash-verified

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

Callers 1

logErrorFunction · 0.70

Calls 1

shiftMethod · 0.80

Tested by

no test coverage detected