Skip to content
Snippets Groups Projects
Commit c91a4c9d authored by Aya Morisawa's avatar Aya Morisawa
Browse files

Update log messages

parent 1213e95d
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
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`);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment