Skip to content

Commit

Permalink
use inspect sentry workaround (#4918)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga authored Dec 18, 2024
1 parent b72ab44 commit 481045b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/plausible/mailer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 481045b

Please sign in to comment.