From 5b0aaf66ebdffe2de0899471e1191fe6c3adacad Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Sun, 15 Jul 2018 01:57:22 +0900 Subject: [PATCH] Update log message --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.ts b/src/index.ts index 13930b6112..675f862b6f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -131,6 +131,11 @@ async function init(): Promise { // 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();