Log IP for testing

pull/1612/head
Uku Taht 5 years ago
parent f049e7f358
commit 3fb184a893

@ -383,6 +383,7 @@ defmodule PlausibleWeb.Api.ExternalController do
defp visitor_location_details(conn) do
result =
PlausibleWeb.RemoteIp.get(conn)
|> IO.inspect()
|> Geolix.lookup()
country_code = get_in(result, [:geolocation, :country, :iso_code])

Loading…
Cancel
Save