use debug for output

deepsource-autofix-76c6eb20
Dan Gowans 2023-02-17 12:55:38 -05:00
parent 0c185698c4
commit 51f51a3ca2
2 changed files with 4 additions and 4 deletions

View File

@ -18,8 +18,8 @@ for (let index = 0; index < processCount; index += 1) {
cluster.fork(); cluster.fork();
} }
cluster.on('exit', (worker, code, signal) => { cluster.on('exit', (worker, code, signal) => {
console.log(`Worker ${worker.process.pid.toString()} has been killed`); debug(`Worker ${worker.process.pid.toString()} has been killed`);
console.log('Starting another worker'); debug('Starting another worker');
cluster.fork(); cluster.fork();
}); });
const ntfyStartupConfig = configFunctions.getProperty('application.ntfyStartup'); const ntfyStartupConfig = configFunctions.getProperty('application.ntfyStartup');

View File

@ -32,8 +32,8 @@ for (let index = 0; index < processCount; index += 1) {
} }
cluster.on('exit', (worker, code, signal) => { cluster.on('exit', (worker, code, signal) => {
console.log(`Worker ${worker.process.pid!.toString()} has been killed`) debug(`Worker ${worker.process.pid!.toString()} has been killed`)
console.log('Starting another worker') debug('Starting another worker')
cluster.fork() cluster.fork()
}) })