MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / logImpactReferralDebug

Function logImpactReferralDebug

apps/web/src/lib/impact/debug.ts:14–21  ·  view source on GitHub ↗
(message: string, fields?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

12}
13
14export function logImpactReferralDebug(message: string, fields?: Record<string, unknown>): void {
15 if (!isImpactDebugLoggingEnabled()) return;
16
17 console.log('[impact-referral-debug]', message, {
18 at: new Date().toISOString(),
19 ...(fields ?? {}),
20 });
21}
22
23/** Truncate a response body for safe logging. Impact responses can be large. */
24export function truncateForLog(body: string | null | undefined, max = 500): string | null {

Calls 2

logMethod · 0.65

Tested by

no test coverage detected