mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
tweak logs
This commit is contained in:
parent
eeb2f9eb20
commit
ad49bf9d85
1 changed files with 4 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ class PashubClient:
|
||||||
url = f"{self.base}/jobs/{job_id}"
|
url = f"{self.base}/jobs/{job_id}"
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"About to make API request with session headers: { self.session.headers}"
|
f"About to make API request with session headers: {self.session.headers}"
|
||||||
)
|
)
|
||||||
|
|
||||||
r = self.session.get(url)
|
r = self.session.get(url)
|
||||||
|
|
@ -87,7 +87,9 @@ class PashubClient:
|
||||||
try:
|
try:
|
||||||
return r.json()["uprn"]
|
return r.json()["uprn"]
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning(f"Failed to get UPRN for Job ID {job_id}", e)
|
logger.warning(
|
||||||
|
f"Failed to get UPRN for Job ID {job_id} with exception: {e}"
|
||||||
|
)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _select_latest_core_files(
|
def _select_latest_core_files(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue