Skip to content

Commit 5a27e9d

Browse files
committed
Fix mongoose debug config
1 parent 590a124 commit 5a27e9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mongoose.connection.on('error', () => {
2121
});
2222

2323
// print mongoose logs in dev env
24-
if (config.MONGOOSE_DEBUG) {
24+
if (config.mongooseDebug) {
2525
mongoose.set('debug', (collectionName, method, query, doc) => {
2626
debug(`${collectionName}.${method}`, util.inspect(query, false, 20), doc);
2727
});

0 commit comments

Comments
 (0)