add sentry to logging

This commit is contained in:
Brian Gough 2018-09-06 17:01:18 +01:00
parent 1e4e68c64a
commit f4ec677296
2 changed files with 4 additions and 1 deletions

View file

@ -11,6 +11,9 @@ domain = require("domain")
appIsOk = true appIsOk = true
app = express() app = express()
if Settings.sentry?.dsn?
logger.initializeErrorReporting(Settings.sentry.dsn)
Metrics = require "metrics-sharelatex" Metrics = require "metrics-sharelatex"
Metrics.initialize("filestore") Metrics.initialize("filestore")
Metrics.open_sockets.monitor(logger) Metrics.open_sockets.monitor(logger)

View file

@ -18,7 +18,7 @@
"fs-extra": "^1.0.0", "fs-extra": "^1.0.0",
"heapdump": "^0.3.2", "heapdump": "^0.3.2",
"knox": "~0.9.1", "knox": "~0.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.7",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.3.0", "metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.3.0",
"node-transloadit": "0.0.4", "node-transloadit": "0.0.4",
"node-uuid": "~1.4.1", "node-uuid": "~1.4.1",