Skip to content

Commit

Permalink
Only log if ENV['DEBUG'] is set
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzi committed Jan 25, 2012
1 parent 0b7c89e commit 4cb2584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/github_api/connection.rb
Expand Up @@ -54,7 +54,7 @@ def connection(options = {}) # :nodoc:
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?
Expand Down

0 comments on commit 4cb2584

Please sign in to comment.