Skip to content

Commit

Permalink
PRMP-1122 debogging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NogaNHS committed Dec 6, 2024
1 parent c9b9776 commit 6c6d7e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lambdas/handlers/manage_nrl_pointer_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def lambda_handler(event, context):
f"Processing SQS message for nhs number: {nrl_message.nhs_number}"
)
nrl_verified_message = nrl_message.model_dump(
by_alias=True, exclude_none=True, exclude_defaults=True
by_alias=True, exclude_none=True
)
match nrl_message.action:
case NrlActionTypes.CREATE:
Expand Down
2 changes: 1 addition & 1 deletion lambdas/services/nrl_api_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def create_new_pointer(self, body, retry_on_expired: bool = True):
response.raise_for_status()
logger.info("Successfully created new pointer")
except HTTPError as e:
logger.error(e.response)
logger.error(e.response.content)
if e.response.status_code == 401 and retry_on_expired:
self.headers["Authorization"] = (
f"Bearer {self.auth_service.get_active_access_token()}"
Expand Down

0 comments on commit 6c6d7e0

Please sign in to comment.