From 770493ff9ec751073a3d3b798e51021252e2f10f Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Mon, 18 May 2026 11:51:48 +0000 Subject: [PATCH] add logging --- backend/pashub_fetcher/pashub_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/pashub_fetcher/pashub_service.py b/backend/pashub_fetcher/pashub_service.py index b33b9dcf..13498a32 100644 --- a/backend/pashub_fetcher/pashub_service.py +++ b/backend/pashub_fetcher/pashub_service.py @@ -60,7 +60,9 @@ class PashubService: else: try: uprn = active_client.get_uprn_by_job_id(job_id) + logger.info(f"Failed to access job {job_id} with PasHub credentials") except UnauthorizedError: + logger.info(f"Trying CoordinationHub credentials for job {job_id}") active_client = self._get_coordination_client() uprn = active_client.get_uprn_by_job_id(job_id)