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

Function resetDebugLoggingForTesting

src/utils/debug.ts:127–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127export function resetDebugLoggingForTesting(): void {
128 debugWriter?.dispose()
129 debugWriter = null
130 pendingWrite = Promise.resolve()
131 debugLoggingUnavailable = false
132 debugLoggingUnavailableLogged = false
133 runtimeDebugEnabled = false
134 debugLogBudgetByPath.clear()
135 getDebugLogMaxBytes.cache.clear?.()
136 getMinDebugLogLevel.cache.clear?.()
137 isDebugMode.cache.clear?.()
138 getDebugFilePath.cache.clear?.()
139 getDebugFilter.cache.clear?.()
140 isDebugToStdErr.cache.clear?.()
141 updateLatestDebugLogSymlink.cache.clear?.()
142}
143
144/**
145 * Minimum log level to include in debug output. Defaults to 'debug', which

Callers 1

debug.test.tsFile · 0.85

Calls 2

resolveMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected