|
2 | 2 | import { auditLog } from "@/lib/audit"; |
3 | 3 | import { getSession } from "@/lib/auth"; |
4 | 4 | import { APP_URL } from "@/lib/constants"; |
5 | | -import { logger, recordException, serializeError } from "@/lib/logger"; |
| 5 | +import { logger, serializeError } from "@/lib/logger"; |
6 | 6 | import { getDetailedStorageStats } from "@/lib/media/s3"; |
7 | 7 | import { can, getUserContext } from "@/lib/policy"; |
8 | 8 | import { getDatabaseStorageStats } from "@/lib/storage"; |
@@ -73,7 +73,6 @@ export async function cleanupGhostFiles(cursor?: string) { |
73 | 73 | }); |
74 | 74 | return { success: true, ...result }; |
75 | 75 | } catch (error) { |
76 | | - await recordException(error); |
77 | 76 | logger.error( |
78 | 77 | { userId: user.id, cursor, error: serializeError(error) }, |
79 | 78 | "manual ghost file cleanup failed", |
@@ -110,7 +109,6 @@ export async function repairThumbnails(cursor?: string) { |
110 | 109 | await auditLog(user.id, "update", "storage", "thumbnails", { result }); |
111 | 110 | return { success: true, ...result }; |
112 | 111 | } catch (error) { |
113 | | - await recordException(error); |
114 | 112 | logger.error( |
115 | 113 | { userId: user.id, cursor, error: serializeError(error) }, |
116 | 114 | "manual thumbnail repair failed", |
@@ -169,7 +167,6 @@ export async function repairExifData(cursor?: string) { |
169 | 167 | completed: payload.completed === true, |
170 | 168 | }; |
171 | 169 | } catch (error) { |
172 | | - await recordException(error); |
173 | 170 | logger.error( |
174 | 171 | { userId: user.id, cursor, error: serializeError(error) }, |
175 | 172 | "manual EXIF repair failed", |
|
0 commit comments