mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 12:11:11 -05:00
Refactor: Implement logging and JSONB cleanup
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Analytics } from "@vercel/analytics/react";
|
||||
import { Component, ReactNode } from "react";
|
||||
import { logger } from "@/lib/logger";
|
||||
|
||||
class AnalyticsErrorBoundary extends Component<
|
||||
{ children: ReactNode },
|
||||
@@ -16,7 +17,7 @@ class AnalyticsErrorBoundary extends Component<
|
||||
|
||||
componentDidCatch(error: Error) {
|
||||
// Silently fail - analytics should never break the app
|
||||
console.info('[Analytics] Failed to load, continuing without analytics');
|
||||
logger.info('Analytics failed to load, continuing without analytics', { error: error.message });
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user