mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: pm2 cluster management
This commit is contained in:
1 parent
9f5c00a985
commit
448c398d21
30 files changed
+206
-427
No files matched your search
@@ -78,13 +78,11 @@ export class Logger {
|
||||
});
|
||||
}
|
||||
const msg = `${prefix} ${this.displayName} ${type.translate('en').format({ _inspect: true, payload })}`;
|
||||
if (process.send) process.send({ event: 'message/log', payload: [msg] });
|
||||
else global.Hydro.service.bus.parallel('message/log', msg);
|
||||
process.stdout.write(`${msg}\n`);
|
||||
return true;
|
||||
}
|
||||
const msg = `${prefix} ${this.displayName} ${this.format(...args)}`;
|
||||
if (process.send) process.send({ event: 'message/log', payload: [msg] });
|
||||
else global.Hydro.service.bus.parallel('message/log', msg);
|
||||
process.stdout.write(`${msg}\n`);
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user