TEMP: output the error to STDERR

This commit is contained in:
Régis Hanol 2019-05-23 16:55:04 +02:00
parent 8c8c925d1b
commit f9bb8dde3c

View File

@ -49,7 +49,7 @@ class DiscourseIpInfo
end
rescue => e
Rails.logger.warn("There was an error downloading MaxMindDB (#{name}): #{e}")
STDERR.puts("There was an error downloading MaxMindDB (#{name}): #{e}")
ensure
FileUtils.rm_rf(dest) if dest
FileUtils.rm(tar_gz_file) if tar_gz_file