diff --git a/lib/mongo/cursor.rb b/lib/mongo/cursor.rb index 3f44d6e..452913d 100644 --- a/lib/mongo/cursor.rb +++ b/lib/mongo/cursor.rb @@ -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,