Update log messages

This commit is contained in:
Aya Morisawa 2018-07-14 22:05:19 +09:00
parent 4d2c0e4161
commit 24f52aee46

View file

@ -67,7 +67,7 @@ async function masterMain() {
process.exit(1); process.exit(1);
} }
Logger.succ('Successfully initialized'); Logger.succ('Misskey initialized');
spawnWorkers(() => { spawnWorkers(() => {
Logger.succ('All workers started'); Logger.succ('All workers started');
@ -117,8 +117,7 @@ async function init(): Promise<Config> {
throw exception; throw exception;
} }
configLogger.succ('Successfully loaded'); configLogger.succ('Loaded');
configLogger.info(`Maintainer: ${config.maintainer.name}`);
if (process.platform === 'linux' && !isRoot() && config.port < 1024) { if (process.platform === 'linux' && !isRoot() && config.port < 1024) {
Logger.error('You need root privileges to listen on port below 1024 on Linux'); Logger.error('You need root privileges to listen on port below 1024 on Linux');
@ -133,7 +132,7 @@ async function init(): Promise<Config> {
// Try to connect to MongoDB // Try to connect to MongoDB
const mongoDBLogger = new Logger('MongoDB'); const mongoDBLogger = new Logger('MongoDB');
const db = require('./db/mongodb').default; const db = require('./db/mongodb').default;
mongoDBLogger.succ('Successfully connected'); mongoDBLogger.succ('Connectivity confirmed');
db.close(); db.close();
return config; return config;