TEMP: log more information when failing to download db

This commit is contained in:
Régis Hanol
2019-05-24 17:33:52 +02:00
parent 9ed2c54e27
commit 8c9ffee3af
2 changed files with 5 additions and 1 deletions

View File

@ -29,6 +29,9 @@ class DiscourseIpInfo
uri = URI("https://geolite.maxmind.com/download/geoip/database/#{name}.tar.gz")
puts uri
puts "SIZE: #{Net::HTTP.get(uri).size}"
tar_gz_file = Tempfile.new
tar_gz_file.binmode
tar_gz_file.write(Net::HTTP.get(uri))