mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 07:25:12 +00: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
|
* 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