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

@@ -17,6 +17,7 @@ import { Grid3X3, List } from 'lucide-react';
import { FilterState, SortState } from './Parks';
import { useDocumentTitle } from '@/hooks/useDocumentTitle';
import { useOpenGraph } from '@/hooks/useOpenGraph';
import { logger } from '@/lib/logger';
const initialFilters: FilterState = {
search: '',
@@ -86,7 +87,7 @@ export default function OwnerParks() {
setParks(parksData || []);
}
} catch (error) {
console.error('Error fetching data:', error);
logger.error('Error fetching data', { error });
} finally {
setLoading(false);
}