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

Function addToInMemoryErrorLog

src/bootstrap/state.ts:1231–1240  ·  view source on GitHub ↗
(errorInfo: {
  error: string
  timestamp: string
})

Source from the content-addressed store, hash-verified

1229}
1230
1231export function addToInMemoryErrorLog(errorInfo: {
1232 error: string
1233 timestamp: string
1234}): void {
1235 const MAX_IN_MEMORY_ERRORS = 100
1236 if (STATE.inMemoryErrorLog.length >= MAX_IN_MEMORY_ERRORS) {
1237 STATE.inMemoryErrorLog.shift() // Remove oldest error
1238 }
1239 STATE.inMemoryErrorLog.push(errorInfo)
1240}
1241
1242export function getAllowedSettingSources(): SettingSource[] {
1243 return STATE.allowedSettingSources

Callers

nothing calls this directly

Calls 1

shiftMethod · 0.80

Tested by

no test coverage detected