# HG changeset patch # User Matthew Wild # Date 1451927271 0 # Node ID 3a89f5722626e9cdf79b4a123ae36b5b2b8c0608 # Parent fed4cf6b1f43faa56c3d1f21adbd29ab8c73bf9e geoip: Logging fix diff -r fed4cf6b1f43 -r 3a89f5722626 geoip.lua --- a/geoip.lua Mon Jan 04 17:05:19 2016 +0000 +++ b/geoip.lua Mon Jan 04 17:07:51 2016 +0000 @@ -14,6 +14,8 @@ events.add_handler("new-client", function (info) local ip = info.conn:ip(); local location = city_db:query_by_addr(ip); + log("debug", "GeoIP query for %s", tostring(ip)); + local location, err = city_db:query_by_addr(ip); if location then local l = {}; if location.city_name then