use inspect sentry workaround (#4918)

This commit is contained in:
ruslandoga 2024-12-18 16:18:35 +07:00 committed by GitHub
parent b72ab440e9
commit 481045b817
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,17 +19,17 @@ defmodule Plausible.Mailer do
{:error, :hard_bounce} {:error, :hard_bounce}
{:ok, response} -> {:ok, response} ->
Logger.error("Failed to send e-mail", sentry: %{extra: %{response: response}}) Logger.error("Failed to send e-mail", sentry: %{extra: %{response: inspect(response)}})
{:error, :unknown_error} {:error, :unknown_error}
{:error, _any} -> {:error, _any} ->
Logger.error("Failed to send e-mail", sentry: %{extra: %{response: response}}) Logger.error("Failed to send e-mail", sentry: %{extra: %{response: inspect(response)}})
{:error, :unknown_error} {:error, :unknown_error}
end end
end end
defp handle_error(error) do defp handle_error(error) do
Logger.error("Failed to send e-mail", sentry: %{extra: %{response: error}}) Logger.error("Failed to send e-mail", sentry: %{extra: %{response: inspect(error)}})
{:error, :unknown_error} {:error, :unknown_error}
end end
end end