From 481045b8174584087e632a4124e072e26501cbd6 Mon Sep 17 00:00:00 2001 From: ruslandoga Date: Wed, 18 Dec 2024 16:18:35 +0700 Subject: [PATCH] use inspect sentry workaround (#4918) --- lib/plausible/mailer.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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