add Sentry setup for logs tracking
Change-Id: Ie297275f7f16c954102355f56ff99ef843bff4c2
diff --git a/app.js b/app.js
index da9e365..90d0c84 100644
--- a/app.js
+++ b/app.js
@@ -28,6 +28,7 @@
import JamiRestApi from './routes/jami.js'
import JamiDaemon from './JamiDaemon.js'
+import { sentrySetUp } from './sentry.js'
const configPath = 'jamiServerConfig.json'
@@ -270,6 +271,8 @@
}
}
+ sentrySetUp(app);
+
app.get('/auth', (req, res) => {
const state = getState(req)
if (req.user) {
@@ -293,6 +296,7 @@
})
})
+
const server = http.Server(app)
const io = new Server(server, { cors: corsOptions })