mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 01:13:09 +02:00
update log message
This commit is contained in:
parent
47e6e7dba4
commit
de2024184d
1 changed files with 7 additions and 10 deletions
17
src/index.ts
17
src/index.ts
|
@ -130,12 +130,12 @@ function worker(): void {
|
|||
* Init app
|
||||
*/
|
||||
async function init(): Promise<State> {
|
||||
log('Info', 'Welcome to Misskey!');
|
||||
|
||||
log('Info', chalk.bold('Misskey Core <aoi>'));
|
||||
|
||||
let warn = false;
|
||||
|
||||
log('Info', 'Welcome to Misskey!');
|
||||
log('Info', chalk.bold('Misskey Core <aoi>'));
|
||||
log('Info', 'Initializing...');
|
||||
|
||||
// Get commit info
|
||||
try {
|
||||
const commit = await prominence(git).getLastCommit();
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue