From 07c37f396fbd34f0be66676ea9c3727f67f8c7ea Mon Sep 17 00:00:00 2001 From: dbroqua Date: Wed, 25 Dec 2019 18:36:02 +0100 Subject: [PATCH] Added debug mongo --- mongo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongo.js b/mongo.js index 6059d70..3cfd3eb 100644 --- a/mongo.js +++ b/mongo.js @@ -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:'))