merge coreLogger utility with new startup services concept
This commit is contained in:
parent
146c0a6096
commit
ead697ee3b
1 changed files with 12 additions and 13 deletions
|
|
@ -21,7 +21,6 @@ import type { EnvService } from '@/global/EnvService.js';
|
|||
import type { EnvOption } from '@/env.js';
|
||||
import { renderInlineError } from '@/misc/render-inline-error.js';
|
||||
import { showMachineInfo } from '@/misc/show-machine-info.js';
|
||||
import { coreLogger } from '@/boot/coreLogger.js';
|
||||
import { jobQueue, server } from './common.js';
|
||||
|
||||
const _filename = fileURLToPath(import.meta.url);
|
||||
|
|
@ -34,21 +33,21 @@ const themeColor = chalk.hex('#86b300');
|
|||
function greet(logger: Logger, bootLogger: Logger, envOption: EnvOption) {
|
||||
if (!envOption.quiet) {
|
||||
//#region Misskey logo
|
||||
coreLogger.info(themeColor(' _____ _ _ '));
|
||||
coreLogger.info(themeColor('/ ___| | | | '));
|
||||
coreLogger.info(themeColor('\\ `--.| |__ __ _ _ __| | _____ _ _ '));
|
||||
coreLogger.info(themeColor(' `--. \\ \'_ \\ / _` | \'__| |/ / _ \\ | | |'));
|
||||
coreLogger.info(themeColor('/\\__/ / | | | (_| | | | < __/ |_| |'));
|
||||
coreLogger.info(themeColor('\\____/|_| |_|\\__,_|_| |_|\\_\\___|\\__, |'));
|
||||
coreLogger.info(themeColor(' __/ |'));
|
||||
coreLogger.info(themeColor(' |___/ '));
|
||||
logger.info(themeColor(' _____ _ _ '));
|
||||
logger.info(themeColor('/ ___| | | | '));
|
||||
logger.info(themeColor('\\ `--.| |__ __ _ _ __| | _____ _ _ '));
|
||||
logger.info(themeColor(' `--. \\ \'_ \\ / _` | \'__| |/ / _ \\ | | |'));
|
||||
logger.info(themeColor('/\\__/ / | | | (_| | | | < __/ |_| |'));
|
||||
logger.info(themeColor('\\____/|_| |_|\\__,_|_| |_|\\_\\___|\\__, |'));
|
||||
logger.info(themeColor(' __/ |'));
|
||||
logger.info(themeColor(' |___/ '));
|
||||
//#endregion
|
||||
|
||||
coreLogger.info(' Sharkey is an open-source decentralized microblogging platform.');
|
||||
coreLogger.info(chalk.rgb(255, 136, 0)(' If you like Sharkey, please donate to support development. https://opencollective.com/sharkey'));
|
||||
logger.info(' Sharkey is an open-source decentralized microblogging platform.');
|
||||
logger.info(chalk.rgb(255, 136, 0)(' If you like Sharkey, please donate to support development. https://opencollective.com/sharkey'));
|
||||
|
||||
coreLogger.info('');
|
||||
coreLogger.info(chalkTemplate`--- ${os.hostname()} {gray (PID: ${process.pid.toString()})} ---`);
|
||||
logger.info('');
|
||||
logger.info(chalkTemplate`--- ${os.hostname()} {gray (PID: ${process.pid.toString()})} ---`);
|
||||
}
|
||||
|
||||
bootLogger.info('Welcome to Sharkey!');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue