mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 02:51:13 -05:00
Implement Phase 3C error logging
This commit is contained in:
@@ -3,6 +3,7 @@ import { useAuth } from './useAuth';
|
||||
import { useRequireMFA } from './useRequireMFA';
|
||||
import { getSessionAal } from '@/lib/authService';
|
||||
import { logger } from '@/lib/logger';
|
||||
import { handleNonCriticalError } from '@/lib/errorHandler';
|
||||
|
||||
/**
|
||||
* Phase 3: Session Monitoring Hook
|
||||
@@ -56,10 +57,9 @@ export function useSessionMonitor() {
|
||||
}, 30000);
|
||||
}
|
||||
} catch (error: unknown) {
|
||||
logger.error('Session monitor check failed', {
|
||||
handleNonCriticalError(error, {
|
||||
action: 'Session monitor check',
|
||||
userId: user.id,
|
||||
action: 'session_monitor',
|
||||
error: error instanceof Error ? error.message : String(error)
|
||||
});
|
||||
}
|
||||
}, 60000);
|
||||
|
||||
Reference in New Issue
Block a user