Refactor: Implement logging phases

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 17:08:36 +00:00
parent 12de4e2ec1
commit b6179372e6
27 changed files with 72 additions and 45 deletions

View File

@@ -7,6 +7,7 @@ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@
import { AlertTriangle, CheckCircle, RefreshCw, Loader2 } from 'lucide-react';
import { supabase } from '@/integrations/supabase/client';
import { format } from 'date-fns';
import { logger } from '@/lib/logger';
interface DuplicateStats {
date: string | null;
@@ -86,7 +87,7 @@ export function NotificationDebugPanel() {
})));
}
} catch (error) {
console.error('Failed to load notification debug data:', error);
logger.error('Failed to load notification debug data', { error });
} finally {
setIsLoading(false);
}