Skip to content

Commit ab3def6

Browse files
committed
Tweak sentry a bit so it hopefully works again
1 parent 25a8f11 commit ab3def6

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

handler-standalone.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
const preloadedSentry = require('@sentry/node/preload')
2+
13
const schedule = require('node-schedule')
24
const { CaptureConsole } = require('@sentry/integrations')
35
const Sentry = require('@sentry/node')
4-
const Tracing = require('@sentry/tracing')
56

67
const { hourlyCheck } = require('./announces')
78
const { asyncEventRouter } = require('./async-routes')
@@ -26,12 +27,7 @@ const sentryInitCallback = {
2627
environment: process.env.SENTRY_ENVIRONMENT,
2728
tracesSampleRate: 1.0,
2829
integrations: [
29-
new CaptureConsole(
30-
{ levels: ['log', 'info', 'warn', 'error', 'assert'] }
31-
),
32-
new Sentry.Integrations.Http({ tracing: true }),
33-
new Tracing.Integrations.Express({ app }),
34-
new Tracing.Integrations.Mongo()
30+
Sentry.captureConsoleIntegration(),
3531
]
3632
})
3733
sentryHelper = {
@@ -47,7 +43,6 @@ const sentryInitCallback = {
4743

4844
final (app) {
4945
// The error handler must be before any other error middleware and after all controllers
50-
app.use(Sentry.Handlers.errorHandler())
5146
}
5247
}
5348

wildbutton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require('dotenv').config()
1+
require('dotenv').config({ quiet: true })
22
const express = require('express')
33
const mountEvents = require('./events')
44
const mountRoutes = require('./routes')

0 commit comments

Comments
 (0)