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/misc | |
| 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/misc')
| -rw-r--r-- | src/misc/environmentInfo.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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`); } } |