add sentry support

This commit is contained in:
Brian Gough 2017-10-30 16:14:29 +00:00
parent 17ac7719c3
commit 009f8a3eae
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
logger = require "logger-sharelatex"
logger.initialize("real-time-sharelatex")
if Settings.sentry?.dsn?
logger.initializeErrorReporting(Settings.sentry.dsn)
express = require("express")
session = require("express-session")

View file

@ -15,7 +15,7 @@
"cookie-parser": "^1.3.3",
"express": "^4.10.1",
"express-session": "^1.9.1",
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.1.0",
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.5.6",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.4.0",
"redis-sharelatex": "git+https://github.com/sharelatex/redis-sharelatex.git#v1.0.4",
"request": "~2.34.0",