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 8b1d7cf commit 17cb66bCopy full SHA for 17cb66b
app/models/sponsor.rb
@@ -15,11 +15,11 @@ def ads_for(ip)
15
req.options.timeout = 2 # open/read timeout in seconds
16
req.options.open_timeout = 1 # connection open timeout in seconds
17
end
18
- logger.info "sponsor=success seconds=#{"%.2f" % (Time.now - start)}"
+ Rails.logger.info "sponsor=success seconds=#{"%.2f" % (Time.now - start)}"
19
20
JSON.parse(response.body) rescue nil
21
rescue Faraday::TimeoutError
22
- logger.info "sponsor=timeout seconds=#{"%.2f" % (Time.now - start)}"
+ Rails.logger.info "sponsor=timeout seconds=#{"%.2f" % (Time.now - start)}"
23
nil
24
25
0 commit comments