From 3fb184a893f1381af22276f9aa02d308a79ee4c2 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Fri, 14 Jan 2022 18:10:58 -0600 Subject: [PATCH] Log IP for testing --- lib/plausible_web/controllers/api/external_controller.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/plausible_web/controllers/api/external_controller.ex b/lib/plausible_web/controllers/api/external_controller.ex index 6fe216206..36fda2d5f 100644 --- a/lib/plausible_web/controllers/api/external_controller.ex +++ b/lib/plausible_web/controllers/api/external_controller.ex @@ -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])