RUBY-289 ensure that negative limit is logged
This commit is contained in:
parent
f333871bc0
commit
82b103752e
@ -489,8 +489,8 @@ module Mongo
|
||||
def instrument_payload
|
||||
log = { :database => @db.name, :collection => @collection.name, :selector => selector }
|
||||
log[:fields] = @fields if @fields
|
||||
log[:skip] = @skip if @skip && (@skip > 0)
|
||||
log[:limit] = @limit if @limit && (@limit > 0)
|
||||
log[:skip] = @skip if @skip && (@skip != 0)
|
||||
log[:limit] = @limit if @limit && (@limit != 0)
|
||||
log[:order] = @order if @order
|
||||
log
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user