Skip to content

Commit

Permalink
Add log output when updating IP lists
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvh committed Sep 15, 2018
1 parent d2eb3a1 commit 719ec18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/rack/cloudflare/ips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def update!
end

def fetch(url)
Cloudflare.info "[#{name}] Updating Cloudflare IP list: #{url.inspect}"
parse URI(url).read
rescue OpenURI::HTTPError => ex
Cloudflare.error "[#{name}] #{ex.class.name} fetching #{url.inspect}: #{ex.message}"
Expand Down
2 changes: 1 addition & 1 deletion lib/rack/cloudflare/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Rack
class Cloudflare
VERSION = '1.0.2'
VERSION = '1.0.3'
end
end

0 comments on commit 719ec18

Please sign in to comment.