From de2024184d87d0098057242937a979318888dedc Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Thu, 29 Dec 2016 20:39:46 +0900 Subject: update log message --- src/index.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/index.ts b/src/index.ts index cefa1a2caa..c030daeb2e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -130,11 +130,11 @@ function worker(): void { * Init app */ async function init(): Promise { - log('Info', 'Welcome to Misskey!'); + let warn = false; + log('Info', 'Welcome to Misskey!'); log('Info', chalk.bold('Misskey Core ')); - - let warn = false; + log('Info', 'Initializing...'); // Get commit info try { @@ -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); -- cgit v1.2.3-freya