aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-10 21:05:33 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-10 21:05:33 -0500
commit87e7ba3784f02d2e146051e59a08412648c6ff79 (patch)
tree6cd058f1e173ae59c74677b899dbbddd38ac2704 /src/lib/common
parent728e1a473c9208aeb15e5733b59d730793df6b21 (diff)
downloadtanzanite-87e7ba3784f02d2e146051e59a08412648c6ff79.tar.gz
tanzanite-87e7ba3784f02d2e146051e59a08412648c6ff79.tar.bz2
tanzanite-87e7ba3784f02d2e146051e59a08412648c6ff79.zip
fix(Sentry): stop duplicating errors in console
Diffstat (limited to 'src/lib/common')
-rw-r--r--src/lib/common/Sentry.ts4
1 files changed, 4 insertions, 0 deletions
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'
})
]
});