Added debug mongo

This commit is contained in:
dbroqua 2019-12-25 18:36:02 +01:00
parent 3ed371fbda
commit 07c37f396f

View file

@ -36,7 +36,7 @@ const schemas = {
const Histories = mongoose.model('histories', schemas.histories)
const Metadata = mongoose.model('metadata', schemas.metadata)
mongoose.connect(config.mongoUrl, { useNewUrlParser: true, useUnifiedTopology: true })
mongoose.connect(config.mongoUrl, { useNewUrlParser: true, useUnifiedTopology: true, debug: true })
const db = mongoose.connection
db.on('error', console.error.bind(console, 'connection error:'))