Module: EventStore::HTTP::Connect::LogAttributes
- Defined in:
- lib/event_store/http/connect/log_attributes.rb
Class Method Summary collapse
Class Method Details
.get(connect, host: nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/event_store/http/connect/log_attributes.rb', line 5 def self.get(connect, host: nil) if host.nil? host_text = connect.host else host_text = "#{host} [Overriding setting: #{connect.host}]" end connect.instance_exec do "Host: #{host_text}, Port: #{port}, KeepAliveTimeout: #{keep_alive_timeout || '(default)'}, ReadTimeout: #{read_timeout || '(default)'}, OpenTimeout: #{open_timeout || '(default)'}, ContinueTimeout: #{continue_timeout || '(none)'}" end end |