ruby - How do I pass debug and logging options through Faraday to Net::HTTP or Net::HTTPS -


i'm using faraday , net::http, net::https connect site using ssl. following error: 'ssl_connect returned=1 errno=0 state=sslv3 read finished a: sslv3 alert handshake failure'

how make faraday turn on debugging , logging in underlying client?

where initialize faraday connection, can pass things through underlying adapter. example, use behavior in 1 of clients, albeit excon instead of net::http, should able adapt:

excon_options = {} excon_options.merge!(instrumentor: instrumentor) if instrumentor @connection = faraday::connection.new(url: url) |builder|   builder.adapter :excon, excon_options end 

the excon_options hash in case format of hash pass excon connection object if weren't using faraday. should able similar net::http


Comments