mirror of
https://github.com/lostisland/faraday.git
synced 2025-07-17 00:01:32 -04:00
Compare commits
No commits in common. "2824eaf968ee88b5c4c2c1411e16de4847cdf20a" and "be98e8ef6fd97513ce7d4967b796ef44d8b16bcf" have entirely different histories.
2824eaf968
...
be98e8ef6f
@ -56,8 +56,6 @@ module Faraday
|
||||
private
|
||||
|
||||
def dump_headers(headers)
|
||||
return if headers.nil?
|
||||
|
||||
headers.map { |k, v| "#{k}: #{v.inspect}" }.join("\n")
|
||||
end
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Faraday
|
||||
VERSION = '2.7.8'
|
||||
VERSION = '2.7.7'
|
||||
end
|
||||
|
@ -25,7 +25,6 @@ RSpec.describe Faraday::Response::Logger do
|
||||
stubs.get('/filtered_headers') { [200, { 'Content-Type' => 'text/html' }, 'headers response'] }
|
||||
stubs.get('/filtered_params') { [200, { 'Content-Type' => 'text/html' }, 'params response'] }
|
||||
stubs.get('/filtered_url') { [200, { 'Content-Type' => 'text/html' }, 'url response'] }
|
||||
stubs.get('/connection_failed') { raise Faraday::ConnectionFailed, 'Failed to open TCP connection' }
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -217,15 +216,6 @@ RSpec.describe Faraday::Response::Logger do
|
||||
end
|
||||
end
|
||||
|
||||
context 'when logging headers and errors' do
|
||||
let(:logger_options) { { headers: true, errors: true } }
|
||||
|
||||
it 'logs error message' do
|
||||
expect { conn.get '/connection_failed' }.to raise_error(Faraday::ConnectionFailed)
|
||||
expect(string_io.string).to match(%(Failed to open TCP connection))
|
||||
end
|
||||
end
|
||||
|
||||
context 'when using log_level' do
|
||||
let(:logger_options) { { bodies: true, log_level: :debug } }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user