Skip to content

Commit

Permalink
[PRMP-1257
Browse files Browse the repository at this point in the history
  • Loading branch information
robg-nhs authored Dec 19, 2024
1 parent 6b64133 commit 9592186
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lambdas/services/nrl_api_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def create_new_pointer(self, body, retry_on_expired: bool = True):
logger.info(
f"Create pointer response: Status code: {response.status_code}, "
f"Body: {response.json()}, "
f"Date: {response.headers.get('date', 'No date found.')}"
f"Headers: {response.headers}"
)
response.raise_for_status()
logger.info("Successfully created new pointer")
Expand Down Expand Up @@ -87,7 +87,7 @@ def get_pointer(
logger.info(
f"Get pointer response: Status code: {response.status_code}, "
f"Body: {response.json()}, "
f"Date: {response.headers.get('date', 'No date found.')}"
f"Headers: {response.headers}"
)
response.raise_for_status()
return response.json()
Expand Down Expand Up @@ -120,7 +120,7 @@ def delete_pointer(self, nhs_number, record_type: SnomedCode = None):
logger.info(
f"Delete pointer response: Body: {response.json()}, "
f"Status Code: {response.status_code}, "
f"Date: {response.headers.get('date', 'No date found.')}"
f"Headers: {response.headers}"
)
response.raise_for_status()
except HTTPError as e:
Expand Down

0 comments on commit 9592186

Please sign in to comment.