mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
update log message
This commit is contained in:
parent
c866e222f5
commit
fc584a757d
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
|
* 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);
|
||||||
|
|
Loading…
Reference in a new issue