hotfix: Log Account ID on billing portal errors

This commit is contained in:
Andrew Dryga
2024-04-02 13:14:30 -06:00
parent 8f4e6a2540
commit 4bd692bc6c

View File

@@ -210,7 +210,10 @@ defmodule Web.Settings.Billing do
{:noreply, redirect(socket, external: billing_portal_url)}
else
{:error, reason} ->
Logger.error("Failed to get billing portal URL", reason: inspect(reason))
Logger.error("Failed to get billing portal URL",
reason: inspect(reason),
account_id: socket.assigns.account.id
)
socket =
assign(socket,