MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / traceClientLog

Function traceClientLog

apps/kimi-web/src/debug/trace.ts:317–325  ·  view source on GitHub ↗
(level: ClientLogLevel, label: string, detail?: unknown)

Source from the content-addressed store, hash-verified

315};
316
317function traceClientLog(level: ClientLogLevel, label: string, detail?: unknown): void {
318 if (!isTraceEnabled()) return;
319 push({
320 source: 'client',
321 kind: `client:${level}`,
322 label: `${LEVEL_GLYPH[level]} ${label}`,
323 detail: detailOf(detail),
324 });
325}
326
327/** Record a client-side diagnostic event (e.g. a feature's internal state, such
328 as audio playback) into the troubleshooting log. No-op unless tracing is

Callers 1

Calls 3

isTraceEnabledFunction · 0.85
detailOfFunction · 0.85
pushFunction · 0.70

Tested by

no test coverage detected