mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-01 08:01:55 +01:00
Update log message
This commit is contained in:
parent
0a4b652493
commit
5b0aaf66eb
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue