From de2024184d87d0098057242937a979318888dedc Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Thu, 29 Dec 2016 20:39:46 +0900 Subject: [PATCH] update log message --- src/index.ts | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/index.ts b/src/index.ts index cefa1a2caa..c030daeb2e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -130,12 +130,12 @@ function worker(): void { * Init app */ async function init(): Promise { - log('Info', 'Welcome to Misskey!'); - - log('Info', chalk.bold('Misskey Core ')); - let warn = false; + log('Info', 'Welcome to Misskey!'); + log('Info', chalk.bold('Misskey Core ')); + log('Info', 'Initializing...'); + // Get commit info try { const commit = await prominence(git).getLastCommit(); @@ -149,15 +149,12 @@ async function init(): Promise { log('Info', `No commit information found`, 'LastCommit'); } - log('Info', 'Initializing...'); - + log('Info', typeof env == 'undefined' ? 'NODE_ENV is not set' : `NODE_ENV: ${env}`, 'Env'); if (IS_DEBUG) { - log('Warn', 'The environment is not in production mode'); - log('Warn', 'Do not use for production purpose.'); + log('Warn', 'The environment is not in production mode', 'Env'); + log('Warn', 'Do not use for production purpose.', 'Env'); } - log('Info', `environment: ${env}`); - // Get machine info const totalmem = (os.totalmem() / 1024 / 1024 / 1024).toFixed(1); const freemem = (os.freemem() / 1024 / 1024 / 1024).toFixed(1);