summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2016-12-31 02:54:08 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2016-12-31 02:54:08 +0900
commit9c6244dfa4db3634608e0c093e21938e65fed485 (patch)
treeef2408e0e2e76afeada85a8965b93811cb052e7c /src
parentUpdate README.md (diff)
downloadmisskey-9c6244dfa4db3634608e0c093e21938e65fed485.tar.gz
misskey-9c6244dfa4db3634608e0c093e21938e65fed485.tar.bz2
misskey-9c6244dfa4db3634608e0c093e21938e65fed485.zip
Use configLogger for logging
Diffstat (limited to 'src')
-rw-r--r--src/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.ts b/src/index.ts
index e43cb841d8..5cc91d840d 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -166,12 +166,12 @@ async function init(): Promise<State> {
machineLogger.info(`CPU: ${os.cpus().length}core`);
machineLogger.info(`MEM: ${totalmem}GB (available: ${freemem}GB)`);
+ let configLogger = new Logger('Config');
if (!fs.existsSync(`${__dirname}/../.config/config.yml`)) {
- Logger.error('Configuration not found');
+ configLogger.error('Configuration not found');
return State.failed;
}
- let configLogger = new Logger('Config');
configLogger.info('Successfully loaded');
configLogger.info(`maintainer: ${config.maintainer}`);