fix(telemetry): downgrade TS telemetry-failure logs to debug

Telemetry is best-effort by contract — every PostHog hiccup or
network blip would print red error lines on user stderr otherwise.
Python uses logger.debug for the same paths; this restores parity.

Keeps console.error only at sites that surface a real user-facing
failure (e.g., MemoryClient init ping failed).
This commit is contained in:
Mgeeeek
2026-05-06 01:55:47 +05:30
parent 64487cbf31
commit 4176293cc9
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -64,12 +64,12 @@ class UnifiedTelemetry implements TelemetryClient {
});
if (!response.ok) {
console.error("Telemetry event capture failed:", await response.text());
console.debug("Telemetry event capture failed:", response.status);
return false;
}
return true;
} catch (error) {
console.error("Telemetry event capture failed:", error);
console.debug("Telemetry event capture failed:", error);
return false;
}
}