Fix: Resolve logger not found errors

This commit is contained in:
gpt-engineer-app[bot]
2025-11-04 21:08:37 +00:00
parent a649906b61
commit 22522b31ac
8 changed files with 17 additions and 17 deletions

View File

@@ -215,7 +215,7 @@ export default function Profile() {
parkCount: parkCount
});
} catch (error) {
logger.error('Error fetching calculated stats', { error });
handleNonCriticalError(error, { action: 'Fetch Calculated Stats', metadata: { userId } });
toast({
variant: 'destructive',
description: getErrorMessage(error),
@@ -391,7 +391,7 @@ export default function Profile() {
setRecentActivity(combined);
} catch (error) {
logger.error('Error fetching recent activity', { error });
handleNonCriticalError(error, { action: 'Fetch Recent Activity', metadata: { userId } });
toast({
variant: 'destructive',
description: getErrorMessage(error),
@@ -452,7 +452,7 @@ export default function Profile() {
await fetchRecentActivity(data.user_id || '');
}
} catch (error) {
logger.error('Error fetching profile', { error });
handleNonCriticalError(error, { action: 'Fetch Profile', metadata: { username } });
toast({
variant: "destructive",
title: "Error loading profile",
@@ -493,7 +493,7 @@ export default function Profile() {
await fetchRecentActivity(user.id);
}
} catch (error) {
logger.error('Error fetching profile', { error });
handleNonCriticalError(error, { action: 'Fetch Current User Profile' });
toast({
variant: "destructive",
title: "Error loading profile",