We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17cb66b commit b76f501Copy full SHA for b76f501
app/models/sponsor.rb
@@ -18,8 +18,8 @@ def ads_for(ip)
18
Rails.logger.info "sponsor=success seconds=#{"%.2f" % (Time.now - start)}"
19
20
JSON.parse(response.body) rescue nil
21
- rescue Faraday::TimeoutError
22
- Rails.logger.info "sponsor=timeout seconds=#{"%.2f" % (Time.now - start)}"
+ rescue Faraday::TimeoutError, Net::OpenTimeout => e
+ Rails.logger.info "sponsor=timeout seconds=#{"%.2f" % (Time.now - start)} type=#{e}"
23
nil
24
end
25
0 commit comments