diff --git a/pyproject.toml b/pyproject.toml index d9d7132..1b8422c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -153,6 +153,7 @@ ignore = [ "TD004", # skip requiring TODOs to have issue links "TID252", # if we're going to use relative imports, use them always "TRY003", # good general advice but lint is way too aggressive + "TRY400", # We want JSON formatting of the exception messages ] select = ["ALL"] target-version = "py311" diff --git a/src/ook/services/algoliaaudit.py b/src/ook/services/algoliaaudit.py index 0f9babc..ce70ec2 100644 --- a/src/ook/services/algoliaaudit.py +++ b/src/ook/services/algoliaaudit.py @@ -118,11 +118,12 @@ async def audit_missing_documents( product_slug=doc.slug, edition_slug="main" ) reingest_count += 1 - except Exception: - self._logger.exception( + except Exception as e: + self._logger.error( "Failed to queue ingest for missing document", handle=doc.slug.upper(), published_url=doc.published_url, + exception=str(e), ) self._logger.info( "Queued ingest for missing documents",