Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Silence undefined plan Sentry log for trials (#3332)
Vini Brasile30ba8b27f86
diff --git a/lib/plausible/billing/quota.ex b/lib/plausible/billing/quota.exindex 94b5f080fa..c19023d502 100644--- a/lib/plausible/billing/quota.ex+++ b/lib/plausible/billing/quota.ex@@ -44,6 +44,7 @@ defmodule Plausible.Billing.Quota doend@monthly_pageview_limit_for_free_10k 10_000+ @monthly_pageview_limit_for_trials :unlimited@spec monthly_pageview_limit(Plausible.Billing.Subscription.t()) ::non_neg_integer() | :unlimited@@ -62,11 +63,13 @@ defmodule Plausible.Billing.Quota do@monthly_pageview_limit_for_free_10k_any ->- Sentry.capture_message("Unknown monthly pageview limit for plan",- extra: %{paddle_plan_id: subscription && subscription.paddle_plan_id}- )+ if subscription do+ Sentry.capture_message("Unknown monthly pageview limit for plan",+ extra: %{paddle_plan_id: subscription.paddle_plan_id}+ )+ end- :unlimited+ @monthly_pageview_limit_for_trialsendend