From 9c6244dfa4db3634608e0c093e21938e65fed485 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Sat, 31 Dec 2016 02:54:08 +0900 Subject: [PATCH] Use configLogger for logging --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index e43cb841d8..5cc91d840d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -166,12 +166,12 @@ async function init(): Promise { machineLogger.info(`CPU: ${os.cpus().length}core`); machineLogger.info(`MEM: ${totalmem}GB (available: ${freemem}GB)`); + let configLogger = new Logger('Config'); if (!fs.existsSync(`${__dirname}/../.config/config.yml`)) { - Logger.error('Configuration not found'); + configLogger.error('Configuration not found'); return State.failed; } - let configLogger = new Logger('Config'); configLogger.info('Successfully loaded'); configLogger.info(`maintainer: ${config.maintainer}`);