update log message

This commit is contained in:
Aya Morisawa 2016-12-29 20:39:46 +09:00
parent c866e222f5
commit fc584a757d

View file

@ -130,12 +130,12 @@ function worker(): void {
* Init app * Init app
*/ */
async function init(): Promise<State> { async function init(): Promise<State> {
log('Info', 'Welcome to Misskey!');
log('Info', chalk.bold('Misskey Core <aoi>'));
let warn = false; let warn = false;
log('Info', 'Welcome to Misskey!');
log('Info', chalk.bold('Misskey Core <aoi>'));
log('Info', 'Initializing...');
// Get commit info // Get commit info
try { try {
const commit = await prominence(git).getLastCommit(); const commit = await prominence(git).getLastCommit();
@ -149,15 +149,12 @@ async function init(): Promise<State> {
log('Info', `No commit information found`, 'LastCommit'); 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) { if (IS_DEBUG) {
log('Warn', 'The environment is not in production mode'); log('Warn', 'The environment is not in production mode', 'Env');
log('Warn', 'Do not use for production purpose.'); log('Warn', 'Do not use for production purpose.', 'Env');
} }
log('Info', `environment: ${env}`);
// Get machine info // Get machine info
const totalmem = (os.totalmem() / 1024 / 1024 / 1024).toFixed(1); const totalmem = (os.totalmem() / 1024 / 1024 / 1024).toFixed(1);
const freemem = (os.freemem() / 1024 / 1024 / 1024).toFixed(1); const freemem = (os.freemem() / 1024 / 1024 / 1024).toFixed(1);