lib/travis/client/session.rb in travis-1.8.2.travis.719.4 vs lib/travis/client/session.rb in travis-1.8.2.travis.722.4
- old
+ new
@@ -19,10 +19,11 @@
PRIMITIVE = [nil, false, true]
SSL_OPTIONS = { :ca_file => Tools::Assets['cacert.pem'] }
include Methods
attr_reader :connection, :headers, :access_token, :instruments, :faraday_adapter, :agent_info, :ssl
+ attr_accessor :debug_http
def initialize(options = Travis::Client::ORG_URI)
@headers = {}
@cache = {}
@instruments = []
@@ -56,9 +57,10 @@
def uri=(uri)
clear_cache!
self.connection = Faraday.new(:url => uri, :ssl => ssl) do |faraday|
faraday.request :url_encoded
+ faraday.response :logger if debug_http
faraday.adapter(*faraday_adapter)
end
end
def faraday_adapter=(adapter)