Log request on error

This commit is contained in:
Simon Detheridge 2019-07-31 12:40:59 +01:00
parent a9d8e938ca
commit e1868e2b54

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