Created
June 8, 2015 12:26
-
-
Save dca/ee3d1954b74b9f1ce56e to your computer and use it in GitHub Desktop.
Enable Mongoose Debug Mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* mongoose 除錯模式 | |
* */ | |
if ( /mongoose/.test(process.env.DEBUG) ){ | |
mongoose.set('debug', true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment