mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 23:29:00 +02:00
added logging to err domain
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user