Merge pull request #74 from EqualMedia/master
Pass cursor payload to instrumentation even if there's no logger.
This commit is contained in:
commit
26090dbbdd
@ -463,9 +463,8 @@ module Mongo
|
||||
|
||||
def send_initial_query
|
||||
message = construct_query_message
|
||||
payload = instrument_payload if @logger
|
||||
sock = @socket || checkout_socket_from_connection
|
||||
instrument(:find, payload) do
|
||||
instrument(:find, instrument_payload) do
|
||||
begin
|
||||
results, @n_received, @cursor_id = @connection.receive_message(
|
||||
Mongo::Constants::OP_QUERY, message, nil, sock, @command,
|
||||
|
Loading…
Reference in New Issue
Block a user