-
Notifications
You must be signed in to change notification settings - Fork 2k
Conversation
+1 LGTM. I'm excited to try this out. |
@lirantal doesn't it print a lot more stuff? Shouldn't we check against an environment variable to see because I wouldn't want debug to always run.. |
@ilanbiala you're right I don't think it should be enabled by default, I'll update the PR. |
I honestly don't mind debug mode running in dev mode... But an env variable would be nice for production boxes. so you don't have to change code to go into debug mode. So I would add it to production.js with production.js development.js |
I actually agree with @ilanbiala that user wouldn't want mongodb debug on, even on development environment, and I do like the environment variable idea so I'm combining it to this
|
…g mode so that we can debug db queries Includes support for environment variable MONGODB_DEBUG
ade07e2
to
0bcadcc
Compare
What about secure? |
@ilanbiala you mean the environment config 'secure'? we don't have that on 0.4.0 |
Oh yeah right, then this is fine. |
Thanks guys. |
Enhancing support for development environment to enable mongoose debug mode so that we can debug db queries
PR submitted out of original idea from #143