Update log message

This commit is contained in:
Aya Morisawa 2018-07-15 01:57:22 +09:00
parent d8a0fdf934
commit d7bd5a5cd1

View file

@ -131,6 +131,11 @@ async function init(): Promise<Config> {
// Try to connect to MongoDB
const mongoDBLogger = new Logger('MongoDB');
mongoDBLogger.info(`Host: ${config.mongodb.host}`);
mongoDBLogger.info(`Port: ${config.mongodb.port}`);
mongoDBLogger.info(`DB: ${config.mongodb.db}`);
if (config.mongodb.user) mongoDBLogger.info(`User: ${config.mongodb.user}`);
if (config.mongodb.pass) mongoDBLogger.info(`Pass: ****`);
const db = require('./db/mongodb').default;
mongoDBLogger.succ('Connectivity confirmed');
db.close();