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

Function applyDebugLogBudgetSync

src/utils/debug.ts:114–125  ·  view source on GitHub ↗
(path: string, content: string)

Source from the content-addressed store, hash-verified

112}
113
114function applyDebugLogBudgetSync(path: string, content: string): string | null {
115 const state = getDebugLogBudgetState(path)
116 let existingBytes = state.bytes
117 if (!state.initialized) {
118 try {
119 existingBytes = getFsImplementation().statSync(path).size
120 } catch {
121 existingBytes = 0
122 }
123 }
124 return applyDebugLogBudget(path, content, existingBytes)
125}
126
127export function resetDebugLoggingForTesting(): void {
128 debugWriter?.dispose()

Callers 1

getDebugWriterFunction · 0.85

Calls 3

getDebugLogBudgetStateFunction · 0.85
getFsImplementationFunction · 0.85
applyDebugLogBudgetFunction · 0.85

Tested by

no test coverage detected