diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-07-14 22:10:27 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-07-14 22:10:27 +0900 |
| commit | c91a4c9da13f8d4c9d41107f5ac16093b93cd025 (patch) | |
| tree | 39cdf66a0a6b12187ae469b2558e0a2f7f100e50 /src | |
| parent | Merge branch 'master' of aya.github:syuilo/misskey (diff) | |
| download | sharkey-c91a4c9da13f8d4c9d41107f5ac16093b93cd025.tar.gz sharkey-c91a4c9da13f8d4c9d41107f5ac16093b93cd025.tar.bz2 sharkey-c91a4c9da13f8d4c9d41107f5ac16093b93cd025.zip | |
Update log messages
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.ts | 2 | ||||
| -rw-r--r-- | src/misc/environmentInfo.ts | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts index dab30da7a1..8ea8dd0ca1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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'); diff --git a/src/misc/environmentInfo.ts b/src/misc/environmentInfo.ts index e6084cde0e..cee42ef9c0 100644 --- a/src/misc/environmentInfo.ts +++ b/src/misc/environmentInfo.ts @@ -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`); } } |