Skip to content

Commit

Permalink
add field selector to db log
Browse files Browse the repository at this point in the history
  • Loading branch information
Visnu Pitiyanuvath committed Aug 19, 2011
1 parent 70b3882 commit 8c0498b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo-log.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = (mongo) ->
mongo.Db.prototype.executeCommand = (db_command, options, callback) ->
output = collectionName: db_command.collectionName
for k in [ 'query', 'documents', 'spec', 'document', 'selector', \
'numberToSkip', 'numberToReturn' ]
'returnFieldSelector', 'numberToSkip', 'numberToReturn' ]
output[k] = db_command[k] if db_command[k]
console.log "#{commandName(db_command).underline}: #{inspect(output, null, 8)}".grey

Expand Down

0 comments on commit 8c0498b

Please sign in to comment.