From e734e34497c98b99a4f59f2e86616a42963e2cc0 Mon Sep 17 00:00:00 2001 From: Gui Castelao Date: Tue, 19 May 2026 22:54:41 -0600 Subject: [PATCH 1/3] log: Informing FIPS with jurisdiction name Although we provide a list (CSV) of jurisdictions, when running with local files, the matching is done with FIPS. This will help to identify typos and other silly errors. --- compass/scripts/process.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compass/scripts/process.py b/compass/scripts/process.py index 65be13a93..2a2fd8903 100644 --- a/compass/scripts/process.py +++ b/compass/scripts/process.py @@ -855,8 +855,9 @@ async def run(self): start_time = time.monotonic() extraction_context = None logger.info( - "Kicking off processing for jurisdiction: %s", + "Kicking off processing for jurisdiction: %s (%s)", self.jurisdiction.full_name, + self.jurisdiction.code, ) try: extraction_context = await self._run() From d48828e15c2ee28a4a835a3f3e96c0078dae19a7 Mon Sep 17 00:00:00 2001 From: Gui Castelao Date: Wed, 20 May 2026 09:11:17 -0600 Subject: [PATCH 2/3] log: Trace level of FIPS for local documents --- compass/scripts/process.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compass/scripts/process.py b/compass/scripts/process.py index 2a2fd8903..50cc649ba 100644 --- a/compass/scripts/process.py +++ b/compass/scripts/process.py @@ -559,7 +559,9 @@ def known_local_docs(self): known_local_docs = self.process_kwargs.known_local_docs or {} if isinstance(known_local_docs, str): known_local_docs = load_config(known_local_docs) - return {int(key): val for key, val in known_local_docs.items()} + inventory = {int(key): val for key, val in known_local_docs.items()} + logger.trace("Loaded known local docs for FIPS codes: %s", list(inventory.keys())) + return inventory @cached_property def known_doc_urls(self): From 43df7d18e76319fdb645240fe83d98ffb898a41d Mon Sep 17 00:00:00 2001 From: Gui Castelao Date: Wed, 20 May 2026 21:14:33 -0600 Subject: [PATCH 3/3] style: Breaking a long line --- compass/scripts/process.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compass/scripts/process.py b/compass/scripts/process.py index 50cc649ba..1861bad13 100644 --- a/compass/scripts/process.py +++ b/compass/scripts/process.py @@ -560,7 +560,10 @@ def known_local_docs(self): if isinstance(known_local_docs, str): known_local_docs = load_config(known_local_docs) inventory = {int(key): val for key, val in known_local_docs.items()} - logger.trace("Loaded known local docs for FIPS codes: %s", list(inventory.keys())) + logger.trace( + "Loaded known local docs for FIPS codes: %s", + list(inventory.keys()), + ) return inventory @cached_property