From 7c950fa4076d9e6aa08129866af76987cc6e624a Mon Sep 17 00:00:00 2001 From: Angela Tran Date: Wed, 18 Dec 2024 19:40:26 +0000 Subject: [PATCH] chore(logging): add more logging to cover more code paths --- eligibility_server/verify.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eligibility_server/verify.py b/eligibility_server/verify.py index 36845e33..8fabed3e 100644 --- a/eligibility_server/verify.py +++ b/eligibility_server/verify.py @@ -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}") @@ -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):