log
This commit is contained in:
@@ -203,6 +203,7 @@ const start = async () => {
|
||||
const beforeExit = async (msg) => {
|
||||
mylog.info('意外退出', msg);
|
||||
mylog.info('进行到第'+ probe.currentIndex + '个用户');
|
||||
process.exit(0);
|
||||
};
|
||||
process.on('SIGINT', beforeExit);
|
||||
process.on('uncaughtException', beforeExit);
|
||||
|
||||
Reference in New Issue
Block a user