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);