aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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'
})
]
});