Skip to content

Commit a78cb75

Browse files
committed
tidy logging
1 parent 3b0c2d7 commit a78cb75

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lambdas/shared/src/common/pds_service.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,15 @@ def __init__(self, authenticator: AppRestrictedAuth, environment):
1818

1919
def get_patient_details(self, patient_id) -> dict | None:
2020
logger.info(f"PDS. Get patient details for ID: {patient_id}")
21-
logger.info("PDS. Getting access token")
2221
access_token = self.authenticator.get_access_token()
23-
logger.info(f"PDS. Access token: {access_token}")
2422
request_headers = {
2523
'Authorization': f'Bearer {access_token}',
2624
'X-Request-ID': str(uuid.uuid4()),
2725
'X-Correlation-ID': str(uuid.uuid4())
2826
}
29-
logger.info("PDS. Request get")
3027
response = requests.get(f"{self.base_url}/{patient_id}", headers=request_headers, timeout=5)
3128

3229
if response.status_code == 200:
33-
logger.info("PDS. Request successful")
3430
logger.info(f"PDS. Response: {response.json()}")
3531
return response.json()
3632
elif response.status_code == 404:

0 commit comments

Comments
 (0)