From 87e7ba3784f02d2e146051e59a08412648c6ff79 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 10 Feb 2022 21:05:33 -0500 Subject: fix(Sentry): stop duplicating errors in console --- src/lib/common/Sentry.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib') diff --git a/src/lib/common/Sentry.ts b/src/lib/common/Sentry.ts index 119e205..e18555b 100644 --- a/src/lib/common/Sentry.ts +++ b/src/lib/common/Sentry.ts @@ -1,5 +1,6 @@ import { RewriteFrames } from '@sentry/integrations'; import * as SentryNode from '@sentry/node'; +import { Integrations } from '@sentry/node'; import config from './../../config/options.js'; export class Sentry { @@ -11,6 +12,9 @@ export class Sentry { integrations: [ new RewriteFrames({ root: rootdir + }), + new Integrations.OnUnhandledRejection({ + mode: 'none' }) ] }); -- cgit