MCPcopy Create free account
hub / github.com/cortexkit/magic-context / scheduleFlush

Function scheduleFlush

packages/plugin/src/shared/logger.ts:48–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48function scheduleFlush(): void {
49 if (flushTimer) return;
50 flushTimer = setTimeout(() => {
51 flushTimer = null;
52 flush();
53 }, FLUSH_INTERVAL_MS);
54}
55
56export function log(message: string, data?: unknown): void {
57 if (isTestEnv) return;

Callers 1

logFunction · 0.85

Calls 1

flushFunction · 0.70

Tested by

no test coverage detected