Skip to content

Commit

Permalink
reduce the logging when running in test mode, errors are expected as … (
Browse files Browse the repository at this point in the history
#983)

* reduce the logging when running in test mode, errors are expected as part of tests

* fix the code, thanks rubocop
  • Loading branch information
epugh committed Mar 14, 2024
1 parent 05f687c commit 577aa70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/proxy_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def fetch
connection = Faraday.new(url: url_without_path) do |faraday|
# Configure the connection options, such as headers or middleware
faraday.response :follow_redirects
faraday.response :logger, nil, { headers: proxy_debug, bodies: proxy_debug, errors: true }
faraday.response :logger, nil, { headers: proxy_debug, bodies: proxy_debug, errors: !Rails.env.test? }
faraday.ssl.verify = false
faraday.request :url_encoded

Expand Down

0 comments on commit 577aa70

Please sign in to comment.