Skip to content

Commit

Permalink
add logging statements for future debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tianj7 committed Nov 13, 2023
1 parent e83de1e commit 407fe57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/argowrapper/routes/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,14 @@ def check_user_billing_id(request):
traceback.print_exc()
raise exception

logger.info("Got user info successfully. Checking for billing id..")

if "tags" in user_info and "billing_id" in user_info["tags"]:
billing_id = user_info["tags"]["billing_id"]
logger.info("billing id found in user tags.")
return billing_id
else:
logger.info("billing id not found.")
return None


Expand Down

0 comments on commit 407fe57

Please sign in to comment.