mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-26 05:11:12 -05:00
Refactor: Implement logging phases
This commit is contained in:
@@ -15,6 +15,7 @@ import { useAuth } from '@/hooks/useAuth';
|
||||
import { useAuthModal } from '@/hooks/useAuthModal';
|
||||
import { toast } from '@/hooks/use-toast';
|
||||
import { getErrorMessage } from '@/lib/errorHandler';
|
||||
import { logger } from '@/lib/logger';
|
||||
import type { Ride, Company, RideModel } from "@/types/database";
|
||||
import { useDocumentTitle } from '@/hooks/useDocumentTitle';
|
||||
|
||||
@@ -110,7 +111,7 @@ export default function RideModelRides() {
|
||||
setModel(modelData as RideModel);
|
||||
setRides(ridesData as Ride[] || []);
|
||||
} catch (error) {
|
||||
console.error("Error fetching data:", error);
|
||||
logger.error("Error fetching data", { error });
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user