diff options
| author | Ben Sima <ben@bsima.me> | 2025-11-12 21:20:07 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-11-13 11:20:14 -0500 |
| commit | c018d2dd1d7e7f1cc19b25f6ec74b3dec44ae9b9 (patch) | |
| tree | a8c0748068f00449bd175aa953eb1acd7027fa65 /Biz/PodcastItLater/Billing.py | |
| parent | 2ad3efe73fbd5df58ae77ec411121575547f0e11 (diff) | |
Cleanup some logging setup code
I think the calls to Log.setup() were accidentally creating multiple
loggers, hopefully this fixes the problem.
Diffstat (limited to 'Biz/PodcastItLater/Billing.py')
| -rw-r--r-- | Biz/PodcastItLater/Billing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Biz/PodcastItLater/Billing.py b/Biz/PodcastItLater/Billing.py index de3540b..7746f79 100644 --- a/Biz/PodcastItLater/Billing.py +++ b/Biz/PodcastItLater/Billing.py @@ -10,6 +10,7 @@ Stripe subscription management and usage enforcement. # : dep pytest-mock import Biz.PodcastItLater.Core as Core import json +import logging import Omni.App as App import Omni.Log as Log import Omni.Test as Test @@ -20,7 +21,8 @@ import typing from datetime import datetime from datetime import timezone -logger = Log.setup() +logger = logging.getLogger(__name__) +Log.setup(logger) # Stripe configuration stripe.api_key = os.getenv("STRIPE_SECRET_KEY", "") |
