Adding debug log for mongodb connection string

This commit is contained in:
Chris Troutner
2021-07-17 11:33:17 -07:00
parent e31dceb07f
commit a023202703
+3
View File
@@ -29,6 +29,9 @@ async function startServer () {
// Connect to the Mongo Database.
mongoose.Promise = global.Promise
mongoose.set('useCreateIndex', true) // Stop deprecation warning.
console.log(
`Connecting to MongoDB with this connection string: ${config.database}`
)
await mongoose.connect(config.database, {
useUnifiedTopology: true,
useNewUrlParser: true