结果: Mongoose: users.ensureIndex({ name: 1 }) { unique: true, background: true, safe: undefined }
var logger = require('morgan')
if ('development' === app.get('env')) {
app.set('showStackError',true)
app.use(logger(':method :url :status'))
app.locals.pretty = true
mongoose.set('debug',true)
};
相关分类