-
Notifications
You must be signed in to change notification settings - Fork 2k
Debug mongoose queries and Add angular-translate #143
Conversation
Schema = mongoose.Schema; | ||
|
||
mongoose.set('debug', config.mongoose ? config.mongoose.debug || false : false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could be more simply written as:
mongoose.set('debug', config.mongoose && config.mongoose.debug);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed it. Thanks!!!
@rubenjgarcia would be interesting to see it as a package indeed. anyway though, I'd remove the mongoose debug which isn't related at all to all the i10n focused PR. |
@rubenjgarcia can you split this PR into 2? |
} | ||
}, | ||
mongoose: { | ||
debug: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should make it db: {}
and put the db key with the url under this object as url.
@rubenjgarcia can you pull out the mongoose debugging into a separate PR? We'll merge that into 0.4.0 because it's a good idea. |
yeah, thanks @codydaig |
Option to debug mongoose queries on development environment