From 61036e3a7034019da4eb30f3359319d199033beb Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Wed, 6 Feb 2019 18:01:35 +0900 Subject: [PATCH] Rename clusterLog to clusterLogger (#4167) --- src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index a55251d3b..6983ec722 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,7 +26,7 @@ import { showMachineInfo } from './misc/show-machine-info'; const logger = new Logger('core', 'cyan'); const bootLogger = logger.createSubLogger('boot', 'magenta'); -const clusterLog = logger.createSubLogger('cluster', 'orange'); +const clusterLogger = logger.createSubLogger('cluster', 'orange'); const ev = new Xev(); /** @@ -249,19 +249,19 @@ function spawnWorker(): Promise { // Listen new workers cluster.on('fork', worker => { - clusterLog.debug(`Process forked: [${worker.id}]`); + clusterLogger.debug(`Process forked: [${worker.id}]`); }); // Listen online workers cluster.on('online', worker => { - clusterLog.debug(`Process is now online: [${worker.id}]`); + clusterLogger.debug(`Process is now online: [${worker.id}]`); }); // Listen for dying workers cluster.on('exit', worker => { // Replace the dead worker, // we're not sentimental - clusterLog.error(chalk.red(`[${worker.id}] died :(`)); + clusterLogger.error(chalk.red(`[${worker.id}] died :(`)); cluster.fork(); });