Merge pull request #41 from overleaf/spd-log-url-on-error

Log request URL on error
This commit is contained in:
Simon Detheridge 2019-08-02 12:27:32 +01:00 committed by GitHub
commit 54d6258151

View file

@ -50,7 +50,7 @@ app.get '/status', (req, res)->
res.send('docstore is alive')
app.use (error, req, res, next) ->
logger.error err: error, "request errored"
logger.error err: error, req:req, "request errored"
if error instanceof Errors.NotFoundError
res.send 404
else