Skip to content

Commit b97bea8

Browse files
committed
Ignore "PrismaClient error"
1 parent 4ce3e22 commit b97bea8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

apps/webapp/app/db.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ function getClient() {
201201
message: log.message,
202202
target: log.target,
203203
},
204+
ignoreError: true,
204205
});
205206
});
206207
}

packages/core/src/logger.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ export class Logger {
7171

7272
this.#structuredLog(console.error, message, "error", ...args);
7373

74-
if (Logger.onError) {
74+
const ignoreError = args.some((arg) => arg?.ignoreError);
75+
76+
if (Logger.onError && !ignoreError) {
7577
Logger.onError(message, ...args);
7678
}
7779
}

0 commit comments

Comments
 (0)