Implement Phase 3C error logging

This commit is contained in:
gpt-engineer-app[bot]
2025-11-04 19:39:55 +00:00
parent 162d288cb0
commit a9334c7a3a
13 changed files with 179 additions and 210 deletions

View File

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