From c9af7ff8893a26e9725e58b5a3d0d25ca774f0ca Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 3 Jul 2022 16:03:53 +0200 Subject: [PATCH] fix: Suppress db validation errors in error reporting --- server/logging/sentry.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/server/logging/sentry.ts b/server/logging/sentry.ts index 2dd5be617..6a35d5bd5 100644 --- a/server/logging/sentry.ts +++ b/server/logging/sentry.ts @@ -9,11 +9,19 @@ if (env.SENTRY_DSN) { release: env.RELEASE, maxBreadcrumbs: 0, ignoreErrors: [ - // emitted by Koa when bots attempt to snoop on paths such as wp-admin - // or the user client submits a bad request. These are expected in normal - // running of the application and don't need to be reported. + // These errors are expected in normal running of the application and + // don't need to be reported. + // Validation "BadRequestError", + "SequelizeValidationError", + "ValidationError", + + // Authentication "UnauthorizedError", + "TeamDomainRequiredError", + "GmailAccountCreationError", + "AuthRedirectError", + "UserSuspendedError", ], }); }