Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

use inspect sentry workaround (#4918)

ruslandoga481045b81745
diff --git a/lib/plausible/mailer.ex b/lib/plausible/mailer.ex
index f7c6acb0cf..fb852f9aed 100644
--- a/lib/plausible/mailer.ex
+++ b/lib/plausible/mailer.ex
@@ -19,17 +19,17 @@ defmodule Plausible.Mailer do
{:error, :hard_bounce}
{: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, _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}
end
end
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}
end
end