From 51f51a3ca242ac544e493171c2f1dd19f5d13be2 Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Fri, 17 Feb 2023 12:55:38 -0500 Subject: [PATCH] use debug for output --- bin/www.js | 4 ++-- bin/www.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/www.js b/bin/www.js index 86045ae3..43039d86 100644 --- a/bin/www.js +++ b/bin/www.js @@ -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'); diff --git a/bin/www.ts b/bin/www.ts index 11900e47..0d2f9f31 100644 --- a/bin/www.ts +++ b/bin/www.ts @@ -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() })