Refactor: Implement full error logging

This commit is contained in:
gpt-engineer-app[bot]
2025-11-04 19:23:28 +00:00
parent 3d646ec6f7
commit 9bf5ea322e
20 changed files with 75 additions and 122 deletions

View File

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