mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix: ignore checksum constraint error when logging (#26113)
This commit is contained in:
@@ -102,6 +102,10 @@ export const getKyselyConfig = (
|
|||||||
}),
|
}),
|
||||||
log(event) {
|
log(event) {
|
||||||
if (event.level === 'error') {
|
if (event.level === 'error') {
|
||||||
|
if (isAssetChecksumConstraint(event.error)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
console.error('Query failed :', {
|
console.error('Query failed :', {
|
||||||
durationMs: event.queryDurationMillis,
|
durationMs: event.queryDurationMillis,
|
||||||
error: event.error,
|
error: event.error,
|
||||||
|
|||||||
Reference in New Issue
Block a user