# Se necesita un pequeño parche en la clase de información de IP de Discourse

**URL:** https://meta.discourse.org/t/small-patch-needed-in-the-discourse-ip-info-class/118786
**Category:** Bug
**Created:** [27 Mayo, 2019 12:23 UTC](https://meta.discourse.org/t/small-patch-needed-in-the-discourse-ip-info-class/118786 "2019-05-27T12:23:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![darix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darix/32/114280_2.png) [@darix](https://meta.discourse.org/u/darix)
#### Post date: [27 Mayo, 2019 12:23 UTC](https://meta.discourse.org/t/small-patch-needed-in-the-discourse-ip-info-class/118786/1 "2019-05-27T12:23:27Z")

</div>

This is basically broken since: 31ad7a60abd but I guess nobody ran into it so far.

```diff
diff --git a/lib/discourse_ip_info.rb b/lib/discourse_ip_info.rb
index 37b0fa2e74..5e7c6a861b 100644
--- a/lib/discourse_ip_info.rb
+++ b/lib/discourse_ip_info.rb
@@ -48,7 +48,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

```

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [27 Mayo, 2019 19:00 UTC](https://meta.discourse.org/t/small-patch-needed-in-the-discourse-ip-info-class/118786/2 "2019-05-27T19:00:51Z")

</div>

Aha cc @sam another fix?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [28 Mayo, 2019 01:45 UTC](https://meta.discourse.org/t/small-patch-needed-in-the-discourse-ip-info-class/118786/3 "2019-05-28T01:45:42Z")

</div>

Sure! sorted per:

[https://github.com/discourse/discourse/commit/769501c63a2bd97d68e6be537cae238647d3be7f](https://github.com/discourse/discourse/commit/769501c63a2bd97d68e6be537cae238647d3be7f)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [28 Mayo, 2019 01:45 UTC](https://meta.discourse.org/t/small-patch-needed-in-the-discourse-ip-info-class/118786/4 "2019-05-28T01:45:47Z")

</div>


