mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:21:23 +08:00
TEMP: output the error to STDERR
This commit is contained in:
@ -49,7 +49,7 @@ class DiscourseIpInfo
|
|||||||
end
|
end
|
||||||
|
|
||||||
rescue => e
|
rescue => e
|
||||||
Rails.logger.warn("There was an error downloading MaxMindDB (#{name}): #{e}")
|
STDERR.puts("There was an error downloading MaxMindDB (#{name}): #{e}")
|
||||||
ensure
|
ensure
|
||||||
FileUtils.rm_rf(dest) if dest
|
FileUtils.rm_rf(dest) if dest
|
||||||
FileUtils.rm(tar_gz_file) if tar_gz_file
|
FileUtils.rm(tar_gz_file) if tar_gz_file
|
||||||
|
Reference in New Issue
Block a user