mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
log the request to sentry when an error occurs
This commit is contained in:
parent
bad923e073
commit
ee8931bc34
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ app.get "/check_lock", HttpController.checkLock
|
|||
app.get "/health_check", HttpController.healthCheck
|
||||
|
||||
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
|
||||
|
||||
port = Settings.internal?.trackchanges?.port or 3015
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"line-reader": "^0.2.4",
|
||||
"mongojs": "^1.4.1",
|
||||
"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",
|
||||
"request": "~2.33.0",
|
||||
"redis-sharelatex": "~0.0.9",
|
||||
|
|
Loading…
Reference in a new issue