Added debug for mongo

This commit is contained in:
Damien Broqua 2023-09-24 22:51:08 +02:00
parent 76c79462be
commit 2ff0798632

View file

@ -24,7 +24,8 @@ passportConfig(passport);
mongoose.set('strictQuery', false); mongoose.set('strictQuery', false);
mongoose mongoose
.connect(mongoDbUri, {useNewUrlParser: true, useUnifiedTopology: true}) .connect(mongoDbUri, {useNewUrlParser: true, useUnifiedTopology: true})
.catch(() => { .catch((err) => {
console.log('Mongo err:', err);
process.exit(); process.exit();
}); });