Use code while exiting
This commit is contained in:
parent
b314acf5b5
commit
7efb8abd97
2
app.js
2
app.js
@ -255,7 +255,7 @@ function exitProcess (listener, logger, killTimeout) {
|
||||
}
|
||||
|
||||
logger.info(`Process is going to exit with code: ${code}`);
|
||||
listener.close(() => global.log4js.shutdown(() => process.exit(1)));
|
||||
listener.close(() => global.log4js.shutdown(() => process.exit(code)));
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user