Added debug mode for mongoose
This commit is contained in:
parent
eacd9e6b5d
commit
48ac7bdabd
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue