mirror of
https://github.com/plausible/analytics.git
synced 2025-01-03 15:17:58 +03:00
use inspect sentry workaround (#4918)
This commit is contained in:
parent
b72ab440e9
commit
481045b817
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user