technoweenie/faraday — Issue #96: Rails.logger and Faraday
Author: oli-g
Created: 2011-12-12 23:22:47+00:00
State: open

Hi guys! I'm trying to make Faraday log on Rails.logger and not only on `STDOUT`.
Reading [here](https://github.com/technoweenie/faraday/blob/master/lib/faraday/response/logger.rb#L7) and [here](https://github.com/technoweenie/faraday/blob/master/lib/faraday/builder.rb#L94), it seems legit to do this:

conn = Faraday.new(url: "http://example.com") do |builder|
builder.use Faraday::Response::Logger, Rails.logger
# builder.use Faraday::Response::ParseJson
# builder.use Faraday::Adapter::Typhoeus
end

But it only logs this:

request
Status
response

Clearly, the issue is [here](https://github.com/technoweenie/faraday/blob/master/lib/faraday/response/logger.rb#L19): it only displays the key of the message.
Is this a bug or am I stupid?