Skip to content

Commit 26090db

Browse files
committed
Merge pull request #74 from EqualMedia/master
Pass cursor payload to instrumentation even if there's no logger.
2 parents 840535a + 4ae41ed commit 26090db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/mongo/cursor.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,8 @@ def refresh
463463

464464
def send_initial_query
465465
message = construct_query_message
466-
payload = instrument_payload if @logger
467466
sock = @socket || checkout_socket_from_connection
468-
instrument(:find, payload) do
467+
instrument(:find, instrument_payload) do
469468
begin
470469
results, @n_received, @cursor_id = @connection.receive_message(
471470
Mongo::Constants::OP_QUERY, message, nil, sock, @command,

0 commit comments

Comments
 (0)