mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 18:51:30 +00:00
Add more detail to metric
This commit is contained in:
parent
8e45a62e32
commit
4102aa0580
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ if Settings.shutdownDrainTimeWindow?
|
|||
process.removeAllListeners('uncaughtException')
|
||||
process.on 'uncaughtException', (error) ->
|
||||
if ['EPIPE', 'ECONNRESET'].includes(error.code)
|
||||
Metrics.inc('disconnected_write')
|
||||
Metrics.inc('disconnected_write', 1, {status: error.code})
|
||||
return logger.warn err: error, 'attempted to write to disconnected client'
|
||||
logger.error err: error, 'uncaught exception'
|
||||
if Settings.errors?.shutdownOnUncaughtError
|
||||
|
|
Loading…
Reference in a new issue