MCPcopy Index your code
hub / github.com/Noumena-Network/code / markDebugLoggingUnavailable

Function markDebugLoggingUnavailable

src/utils/debug.ts:256–267  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

254let debugLoggingUnavailableLogged = false
255
256function markDebugLoggingUnavailable(error: unknown): void {
257 debugLoggingUnavailable = true
258 if (debugLoggingUnavailableLogged) {
259 return
260 }
261 debugLoggingUnavailableLogged = true
262 if (isDebugToStdErr()) {
263 writeToStderr(
264 `${new Date().toISOString()} [WARN] Debug logging disabled: ${errorMessage(error)}\n`,
265 )
266 }
267}
268
269// Module-level so .bind captures only its explicit args, not the
270// writeFn closure's parent scope (Jarred, #22257).

Callers 2

appendAsyncFunction · 0.85
getDebugWriterFunction · 0.85

Calls 3

isDebugToStdErrFunction · 0.85
writeToStderrFunction · 0.85
errorMessageFunction · 0.70

Tested by

no test coverage detected