Fix and test error logging

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 22:19:27 +00:00
parent 1a2b9f69cf
commit ec7fae3d86
3 changed files with 30 additions and 8 deletions

View File

@@ -5,14 +5,18 @@
import { Button } from '@/components/ui/button';
import { handleError } from '@/lib/errorHandler';
import { supabase } from '@/lib/supabaseClient';
import { useAuth } from '@/hooks/useAuth';
export function TestErrorLogging() {
const { user } = useAuth();
const testError = () => {
try {
throw new Error('Test error for logging system verification');
} catch (error) {
handleError(error, {
action: 'Test Error Logging',
userId: user?.id,
metadata: { test: true }
});
}