mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-14 03:54:48 +00:00
added logging to err domain
This commit is contained in:
parent
3bbeff5aff
commit
ce67c8c655
1 changed files with 1 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue