mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 18:51:13 -05:00
Refactor: Implement full error logging
This commit is contained in:
@@ -4,7 +4,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
import { Search, Edit, MapPin, Loader2, X } from 'lucide-react';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { logger } from '@/lib/logger';
|
||||
import { handleNonCriticalError } from '@/lib/errorHandler';
|
||||
|
||||
interface LocationResult {
|
||||
place_id: number;
|
||||
@@ -65,7 +65,10 @@ export function HeadquartersLocationInput({
|
||||
setShowResults(true);
|
||||
}
|
||||
} catch (error) {
|
||||
logger.error('Error searching locations', { error });
|
||||
handleNonCriticalError(error, {
|
||||
action: 'Search headquarters locations',
|
||||
metadata: { query: searchQuery }
|
||||
});
|
||||
} finally {
|
||||
setIsSearching(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user