Skip to content
Snippets Groups Projects
Commit 5b0aaf66 authored by Aya Morisawa's avatar Aya Morisawa
Browse files

Update log message

parent 0a4b6524
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment