use debug for output
parent
0c185698c4
commit
51f51a3ca2
|
|
@ -18,8 +18,8 @@ for (let index = 0; index < processCount; index += 1) {
|
|||
cluster.fork();
|
||||
}
|
||||
cluster.on('exit', (worker, code, signal) => {
|
||||
console.log(`Worker ${worker.process.pid.toString()} has been killed`);
|
||||
console.log('Starting another worker');
|
||||
debug(`Worker ${worker.process.pid.toString()} has been killed`);
|
||||
debug('Starting another worker');
|
||||
cluster.fork();
|
||||
});
|
||||
const ntfyStartupConfig = configFunctions.getProperty('application.ntfyStartup');
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ for (let index = 0; index < processCount; index += 1) {
|
|||
}
|
||||
|
||||
cluster.on('exit', (worker, code, signal) => {
|
||||
console.log(`Worker ${worker.process.pid!.toString()} has been killed`)
|
||||
console.log('Starting another worker')
|
||||
debug(`Worker ${worker.process.pid!.toString()} has been killed`)
|
||||
debug('Starting another worker')
|
||||
cluster.fork()
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue