diff options
| author | Ben Sima <ben@bsima.me> | 2025-11-12 20:02:55 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-11-12 20:02:55 -0500 |
| commit | 3c3eec2b58231bb3e0af58821401a69a994721ac (patch) | |
| tree | 3b2f23dcb2f0ef83075c603f3fcc4af9a1b4cb5b | |
| parent | 388357553446b6c3b207ab060b305b107f937d80 (diff) | |
Add detailed logging for missing subscription period dates
Log available keys when period dates are missing to help debug why
subscription webhooks fail to update user plan.
| -rw-r--r-- | Biz/PodcastItLater/Billing.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Biz/PodcastItLater/Billing.py b/Biz/PodcastItLater/Billing.py index 404064d..c5cb749 100644 --- a/Biz/PodcastItLater/Billing.py +++ b/Biz/PodcastItLater/Billing.py @@ -377,8 +377,9 @@ def _update_subscription_state(subscription: dict[str, typing.Any]) -> None: if not period_start_ts or not period_end_ts: logger.warning( - "Missing period dates in subscription: %s", + "Missing period dates in subscription: %s. Available keys: %s", subscription_id, + list(subscription.keys()), ) return |
