Skip to content

Commit

Permalink
chore(logging): add more logging to cover more code paths
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran committed Dec 18, 2024
1 parent 9f9607b commit 7c950fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eligibility_server/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def _check_user(self, sub, name, types):
logger.debug(f"Existing types on user: {existing_user_types}")
else:
existing_user_types = []
logger.debug("User not found")

matching_types = set(existing_user_types) & set(types)
logger.debug(f"Matching types: {matching_types}")
Expand All @@ -129,6 +130,7 @@ def _check_user(self, sub, name, types):
logger.debug(f"User's types do not contain any of the requested types: {types}")
return []
else:
logger.debug("Returning matching types for existing user")
return list(matching_types)

def get(self):
Expand Down

0 comments on commit 7c950fa

Please sign in to comment.