log the request to sentry when an error occurs

This commit is contained in:
Brian Gough 2016-01-05 15:41:06 +00:00
parent bad923e073
commit ee8931bc34
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ app.get "/check_lock", HttpController.checkLock
app.get "/health_check", HttpController.healthCheck app.get "/health_check", HttpController.healthCheck
app.use (error, req, res, next) -> app.use (error, req, res, next) ->
logger.error err: error, "an internal error occured" logger.error err: error, req: req, "an internal error occured"
res.send 500 res.send 500
port = Settings.internal?.trackchanges?.port or 3015 port = Settings.internal?.trackchanges?.port or 3015

View file

@ -14,7 +14,7 @@
"line-reader": "^0.2.4", "line-reader": "^0.2.4",
"mongojs": "^1.4.1", "mongojs": "^1.4.1",
"settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#v1.0.0", "settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#v1.0.0",
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.2.1", "logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.3.0",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.4.0", "metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.4.0",
"request": "~2.33.0", "request": "~2.33.0",
"redis-sharelatex": "~0.0.9", "redis-sharelatex": "~0.0.9",