diff --git a/lambdas/services/nrl_api_service.py b/lambdas/services/nrl_api_service.py index a95d8a746..81b34da1d 100644 --- a/lambdas/services/nrl_api_service.py +++ b/lambdas/services/nrl_api_service.py @@ -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") @@ -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() @@ -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: