MCPcopy Create free account
hub / github.com/Noumena-Network/code / addToInMemoryErrorLog

Function addToInMemoryErrorLog

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

Source from the content-addressed store, hash-verified

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

Callers 1

logErrorFunction · 0.70

Calls 1

shiftMethod · 0.80

Tested by

no test coverage detected