removed lines which may be causing issue with domain

This commit is contained in:
Henry Oswald 2014-05-12 18:33:09 +01:00
parent ce67c8c655
commit 1f1f535c8b

View file

@ -37,10 +37,8 @@ app.use (req, res, next) ->
requestDomain.add req
requestDomain.add res
requestDomain.on "error", (err)->
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')