mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-27 01:47:00 -05:00
Refactor: Implement logging phases
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Component, ReactNode } from 'react';
|
||||
import { useAdminGuard } from '@/hooks/useAdminGuard';
|
||||
import { AdminLayout } from '@/components/layout/AdminLayout';
|
||||
import { logger } from '@/lib/logger';
|
||||
import { SystemActivityLog } from '@/components/admin/SystemActivityLog';
|
||||
import { Skeleton } from '@/components/ui/skeleton';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
@@ -28,7 +29,7 @@ class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
||||
}
|
||||
|
||||
componentDidCatch(error: Error, errorInfo: any) {
|
||||
console.error('System Activity Log Error:', error, errorInfo);
|
||||
logger.error('System Activity Log Error', { error, errorInfo });
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user