Add code to shutdown message for debugging

GitOrigin-RevId: 1efbda8c82ca1bc160ec4334388fb14259be563c
This commit is contained in:
Andrew Rumble
2025-03-19 12:07:45 +00:00
committed by Copybot
parent 05ee00e29a
commit f98ca1293a

View File

@@ -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)