Skip to content
Snippets Groups Projects
Commit de202418 authored by Aya Morisawa's avatar Aya Morisawa
Browse files

update log message

parent 47e6e7db
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment