Update log messages

This commit is contained in:
Aya Morisawa 2018-07-14 22:10:27 +09:00
parent 884089aa84
commit 7fb09e9063
2 changed files with 4 additions and 1 deletions

View File

@ -96,8 +96,8 @@ async function workerMain() {
async function init(): Promise<Config> {
Logger.info('Welcome to Misskey!');
EnvironmentInfo.show();
MachineInfo.show();
EnvironmentInfo.show();
new DependencyInfo().showAll();
const configLogger = new Logger('Config');

View File

@ -1,4 +1,5 @@
import Logger from './logger';
import isRoot = require('is-root');
export default class {
public static show(): void {
@ -10,5 +11,7 @@ export default class {
logger.warn('The environment is not in production mode');
logger.warn('Do not use for production purpose');
}
logger.info(`You ${isRoot() ? '' : 'do not '}have root privileges`);
}
}