Skip to content

Commit

Permalink
log more in aws marketplace
Browse files Browse the repository at this point in the history
  • Loading branch information
meln1k committed Feb 20, 2024
1 parent 6b401ba commit afa2f14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fixbackend/subscription/aws_marketplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,10 @@ async def create_billing_entry(
return None
try:
billing_time = now or utc()
log.info(f"billing_time: {self.billing_period}")

next_charge = start_of_next_period(period=self.billing_period, current_time=billing_time, hour=9)
log.info(f"AWS Marketplace: next charge for subscription {subscription.id} at {next_charge}")
match self.billing_period:
case "month":
billing_period_value = timedelta(days=30)
Expand Down

0 comments on commit afa2f14

Please sign in to comment.