FIX: exception which was meant to be ignored and logged was failing

Thanks to Darix!
This commit is contained in:
Sam Saffron 2019-05-28 11:45:12 +10:00
parent a02a7d66a9
commit 769501c63a

View File

@ -50,7 +50,7 @@ class DiscourseIpInfo
Rails.logger.warn("MaxMindDB (#{filepath}) could not be found: #{e}")
nil
rescue => e
Discourse.warn_exception(e, "MaxMindDB (#{filepath}) could not be loaded.")
Discourse.warn_exception(e, message: "MaxMindDB (#{filepath}) could not be loaded.")
nil
end
end