Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
debug flag for mongoose
  • Loading branch information
nulltask committed Dec 9, 2012
1 parent b0aba81 commit f3a05fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions models/index.js
Expand Up @@ -12,6 +12,12 @@ var mongoose = require('mongoose')

exports.mongoose = mongoose;

/**
* Set debug flag.
*/

mongoose.set('debug', 'production' !== process.env.NODE_ENV);

/**
* Expose mongoose connection.
*/
Expand Down

0 comments on commit f3a05fc

Please sign in to comment.