This commit is contained in:
chaosBreaking
2019-10-17 11:14:35 +08:00
parent a1213adf66
commit 69acdb3d75

View File

@@ -203,6 +203,7 @@ const start = async () => {
const beforeExit = async (msg) => { const beforeExit = async (msg) => {
mylog.info('意外退出', msg); mylog.info('意外退出', msg);
mylog.info('进行到第'+ probe.currentIndex + '个用户'); mylog.info('进行到第'+ probe.currentIndex + '个用户');
process.exit(0);
}; };
process.on('SIGINT', beforeExit); process.on('SIGINT', beforeExit);
process.on('uncaughtException', beforeExit); process.on('uncaughtException', beforeExit);