summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-05 06:46:01 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-05 06:46:01 +0900
commit6bda571660ce21e641cf8b9210917cc1d939e0ba (patch)
treee027861ce0b5c4f355d2144d331a66ae8fe98e85 /src
parentRefactoring: Extract checkMongoDB function (diff)
downloadmisskey-6bda571660ce21e641cf8b9210917cc1d939e0ba.tar.gz
misskey-6bda571660ce21e641cf8b9210917cc1d939e0ba.tar.bz2
misskey-6bda571660ce21e641cf8b9210917cc1d939e0ba.zip
Make some error logs important
Diffstat (limited to 'src')
-rw-r--r--src/index.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/index.ts b/src/index.ts
index af18977a2c..4e88ef3b4d 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -157,7 +157,7 @@ async function init(): Promise<Config> {
nodejsLogger.info(`Version ${runningNodejsVersion.join('.')}`);
if (!satisfyNodejsVersion) {
- nodejsLogger.error(`Node.js version is less than ${requiredNodejsVersion.join('.')}. Please upgrade it.`);
+ nodejsLogger.error(`Node.js version is less than ${requiredNodejsVersion.join('.')}. Please upgrade it.`, true);
process.exit(1);
}
@@ -174,7 +174,7 @@ async function init(): Promise<Config> {
process.exit(1);
}
if (exception.code === 'ENOENT') {
- configLogger.error('Configuration file not found');
+ configLogger.error('Configuration file not found', true);
process.exit(1);
}
throw exception;
@@ -183,12 +183,12 @@ async function init(): Promise<Config> {
configLogger.succ('Loaded');
if (config.port == null) {
- bootLogger.error('The port is not configured. Please configure port.');
+ bootLogger.error('The port is not configured. Please configure port.', true);
process.exit(1);
}
if (process.platform === 'linux' && isWellKnownPort(config.port) && !isRoot()) {
- bootLogger.error('You need root privileges to listen on well-known port on Linux');
+ bootLogger.error('You need root privileges to listen on well-known port on Linux', true);
process.exit(1);
}