Remove debug console logs

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 15:51:53 +00:00
parent 5e789c7b4b
commit d78356e673
26 changed files with 37 additions and 156 deletions

View File

@@ -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 });
}
}