mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 22:11:13 -05:00
Remove debug console logs
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { supabase } from '@/integrations/supabase/client';
|
||||
import { logger } from './logger';
|
||||
|
||||
// Generate anonymous session hash (no PII)
|
||||
function getSessionHash(): string {
|
||||
@@ -38,10 +39,8 @@ export async function trackPageView(
|
||||
entity_id: entityId,
|
||||
session_hash: getSessionHash()
|
||||
});
|
||||
|
||||
console.log(`✅ Tracked view: ${entityType} ${entityId}`);
|
||||
} catch (error) {
|
||||
// Fail silently - don't break the page if tracking fails
|
||||
console.error('Failed to track page view:', error);
|
||||
logger.error('Failed to track page view', { entityType, entityId });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user