mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
Add code to shutdown message for debugging
GitOrigin-RevId: 1efbda8c82ca1bc160ec4334388fb14259be563c
This commit is contained in:
@@ -74,7 +74,7 @@ app.use((err, req, res, next) => {
|
||||
const shutdownEmitter = new EventEmitter()
|
||||
|
||||
shutdownEmitter.once('shutdown', async code => {
|
||||
logger.info({}, 'shutting down')
|
||||
logger.info({ code }, 'shutting down')
|
||||
await mongodb.client.close()
|
||||
await setTimeout(100)
|
||||
process.exit(code)
|
||||
|
||||
Reference in New Issue
Block a user