Skip to content

Commit

Permalink
don't raise on failed ip lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Oct 28, 2022
1 parent a1d6f4f commit 053e836
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/plausible/geo.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
defmodule Plausible.Geo do
@moduledoc "Geolocation functions"
require Logger

@db :geolocation

@doc """
Expand Down Expand Up @@ -152,7 +154,8 @@ defmodule Plausible.Geo do
nil

{:error, reason} ->
raise "failed to lookup ip address #{inspect(ip_address)}: " <> inspect(reason)
Logger.error("failed to lookup ip address: " <> inspect(reason))
nil
end
end
end

0 comments on commit 053e836

Please sign in to comment.