Added debug mode for mongoose

This commit is contained in:
dbroqua 2020-01-09 11:21:37 +01:00
parent eacd9e6b5d
commit 48ac7bdabd

View file

@ -8,6 +8,7 @@ mongoose.set('useNewUrlParser', true)
mongoose.set('useUnifiedTopology', true)
mongoose.set('useFindAndModify', false)
mongoose.set('useCreateIndex', true)
mongoose.set('debug', process.env.DEBUG || false)
mongoose.connect(process.env.MONGO_URL)