Log IP for testing

This commit is contained in:
Uku Taht 2022-01-14 18:10:58 -06:00
parent f049e7f358
commit 3fb184a893

View File

@ -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])