Method: Mongo::Connection#send_message
- Defined in:
- lib/mongo/connection.rb
#send_message(operation, message, log_message = nil) ⇒ True
Send a message to MongoDB, adding the necessary headers.
336 337 338 339 340 341 342 343 344 345 |
# File 'lib/mongo/connection.rb', line 336 def (operation, , =nil) @logger.debug(" MONGODB #{ || }") if @logger begin = (operation, ).to_s socket = checkout (, socket) ensure checkin(socket) end end |