add logging

This commit is contained in:
Daniel Roth 2026-05-18 11:51:48 +00:00
parent 3a7a00051d
commit 770493ff9e

View file

@ -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)