Method: Mongo::Socket#summary
- Defined in:
- lib/mongo/socket.rb
#summary ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Human-readable summary of the socket for debugging.
122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/mongo/socket.rb', line 122 def summary fileno = @socket&.fileno rescue '<no socket>' || '<no socket>' if monitor? indicator = if [:push] 'pm' else 'm' end "#{connection_address};#{indicator};fd=#{fileno}" else "#{connection_address};c:#{connection_generation};fd=#{fileno}" end end |