fix: update error logging

This commit is contained in:
David Nguyen
2025-03-04 01:41:39 +11:00
parent e08d62c844
commit 7c38970ee8
4 changed files with 13 additions and 5 deletions

View File

@ -1,7 +1,6 @@
import { useEffect } from 'react';
import Plausible from 'plausible-tracker';
import posthog from 'posthog-js';
import {
Links,
Meta,
@ -181,7 +180,6 @@ export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {
if (errorCode !== 404) {
console.error('[RootErrorBoundary]', error);
posthog.captureException(error);
}
return <GenericErrorLayout errorCode={errorCode} />;