mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 05:05:42 +01:00
Update log messages
This commit is contained in:
parent
1213e95ddd
commit
c91a4c9da1
2 changed files with 4 additions and 1 deletions
|
@ -96,8 +96,8 @@ async function workerMain() {
|
||||||
async function init(): Promise<Config> {
|
async function init(): Promise<Config> {
|
||||||
Logger.info('Welcome to Misskey!');
|
Logger.info('Welcome to Misskey!');
|
||||||
|
|
||||||
EnvironmentInfo.show();
|
|
||||||
MachineInfo.show();
|
MachineInfo.show();
|
||||||
|
EnvironmentInfo.show();
|
||||||
new DependencyInfo().showAll();
|
new DependencyInfo().showAll();
|
||||||
|
|
||||||
const configLogger = new Logger('Config');
|
const configLogger = new Logger('Config');
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import Logger from './logger';
|
import Logger from './logger';
|
||||||
|
import isRoot = require('is-root');
|
||||||
|
|
||||||
export default class {
|
export default class {
|
||||||
public static show(): void {
|
public static show(): void {
|
||||||
|
@ -10,5 +11,7 @@ export default class {
|
||||||
logger.warn('The environment is not in production mode');
|
logger.warn('The environment is not in production mode');
|
||||||
logger.warn('Do not use for production purpose');
|
logger.warn('Do not use for production purpose');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.info(`You ${isRoot() ? '' : 'do not '}have root privileges`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue