From f1e6baa9dffc5cf60008aa0bfe8e8f1e397a0c0a Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Mon, 3 Jan 2022 17:21:03 +0200 Subject: [PATCH] Better sentry error --- lib/plausible/billing/plans.ex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/plausible/billing/plans.ex b/lib/plausible/billing/plans.ex index c0a044c7b..56ff3c748 100644 --- a/lib/plausible/billing/plans.ex +++ b/lib/plausible/billing/plans.ex @@ -102,7 +102,11 @@ defmodule Plausible.Billing.Plans do if enterprise_plan do enterprise_plan.monthly_pageview_limit else - Sentry.capture_message("Unknown allowance for plan", extra: %{subscription: subscription}) + Sentry.capture_message("Unknown allowance for plan", + extra: %{ + paddle_plan_id: subscription.paddle_plan_id + } + ) end end end