diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2016-12-29 20:39:46 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2016-12-29 20:39:46 +0900 |
| commit | de2024184d87d0098057242937a979318888dedc (patch) | |
| tree | d883789909a409c7cf45de2b10dcbae2c3cf656c /src | |
| parent | update warn message (diff) | |
| download | misskey-de2024184d87d0098057242937a979318888dedc.tar.gz misskey-de2024184d87d0098057242937a979318888dedc.tar.bz2 misskey-de2024184d87d0098057242937a979318888dedc.zip | |
update log message
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.ts | 15 |
1 files changed, 6 insertions, 9 deletions
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<State> { - log('Info', 'Welcome to Misskey!'); + let warn = false; + log('Info', 'Welcome to Misskey!'); log('Info', chalk.bold('Misskey Core <aoi>')); - - let warn = false; + log('Info', 'Initializing...'); // Get commit info try { @@ -149,15 +149,12 @@ async function init(): Promise<State> { 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); |