bigcommerce-api-ruby icon indicating copy to clipboard operation
bigcommerce-api-ruby copied to clipboard

Add Option for Logging Requests and Responses

Open sshaw opened this issue 3 years ago • 0 comments

Something like :debug => true or :debug => filehandle which would add the correct Faraday config:

Faraday.new do |c|
  # Etc...
  c.response :logger, Logger.new(io), { headers: true, bodies: true }
end

sshaw avatar Nov 25 '22 00:11 sshaw