added logging to err domain

This commit is contained in:
Henry Oswald 2014-05-12 15:57:08 +01:00
parent 3bbeff5aff
commit ce67c8c655

View file

@ -40,6 +40,7 @@ app.use (req, res, next) ->
metrics.inc "err.uncaught"
setTimeout(->
if !res.headerSent
logger.log err:err, "sending 500 our as header has not been sent yet for uncaught exception"
res.send(500)
, 3000)
logger = require('logger-sharelatex')