重测整题功能

This commit is contained in:
undefined committed 2020-09-08 23:14:26 +08:00
1 parent 7a4d5209b8
commit 76b001305d
6 files changed
+31 -4

No files matched your search

+2 -2
View File
@@ -207,13 +207,13 @@ export async function load() {
const cnt = await entry({ entry: 'master' });
logger.info('Master started');
cluster.on('exit', (worker, code, signal) => {
logger.info(`Worker ${worker.process.pid} ${worker.id} exit: ${code} ${signal}`);
logger.warn(`Worker ${worker.process.pid} ${worker.id} exit: ${code} ${signal}`);
});
cluster.on('disconnect', (worker) => {
logger.info(`Worker ${worker.process.pid} ${worker.id} disconnected`);
});
cluster.on('listening', (worker, address) => {
logger.info(`Worker ${worker.process.pid} ${worker.id} listening at `, address);
logger.success(`Worker ${worker.process.pid} ${worker.id} listening at `, address);
});
cluster.on('online', (worker) => {
logger.success(`Worker ${worker.process.pid} ${worker.id} is online`);