lib/github_api/connection.rb in github_api-0.4.2 vs lib/github_api/connection.rb in github_api-0.4.3
- old
+ new
@@ -52,10 +52,10 @@
puts options.inspect if ENV['DEBUG']
builder.use Faraday::Request::JSON
builder.use Faraday::Request::Multipart
builder.use Faraday::Request::UrlEncoded
- builder.use Faraday::Response::Logger
+ builder.use Faraday::Response::Logger if ENV['DEBUG']
builder.use Github::Request::OAuth2, oauth_token if oauth_token?
builder.use Github::Request::BasicAuth, authentication if basic_authed?
builder.use Github::Response::Helpers