MCPcopy Index your code
hub / github.com/volcengine/OpenViking / logError

Function logError

examples/codex-memory-plugin/scripts/debug-log.mjs:56–61  ·  view source on GitHub ↗
(stage, err)

Source from the content-addressed store, hash-verified

54 }
55
56 function logError(stage, err) {
57 const error = err instanceof Error
58 ? { message: err.message, stack: err.stack }
59 : String(err);
60 writeLine(logPath, { ts: localISO(), hook: hookName, stage, error });
61 }
62
63 return { log, logError };
64}

Callers 14

readTranscriptTurnsFunction · 0.70
mainFunction · 0.70
auto-capture.mjsFile · 0.70
readTranscriptTurnsFunction · 0.70
mainFunction · 0.70
auto-recall.mjsFile · 0.70
runCodexCompressorFunction · 0.70
mainFunction · 0.70
commitAndClearFunction · 0.70
mainFunction · 0.70

Calls 3

StringFunction · 0.85
writeLineFunction · 0.70
localISOFunction · 0.70

Tested by

no test coverage detected