diff --git a/front/lib/production_checks/checks/scrub_deleted_core_document_versions.ts b/front/lib/production_checks/checks/scrub_deleted_core_document_versions.ts index 7876532dc7a9..e8e72f253b94 100644 --- a/front/lib/production_checks/checks/scrub_deleted_core_document_versions.ts +++ b/front/lib/production_checks/checks/scrub_deleted_core_document_versions.ts @@ -113,6 +113,15 @@ async function scrubDocument({ }); if (sRes.isErr()) { + logger.error( + { + documentId, + dataSourceProject: project, + dataSourceId: dataSourceId, + error: sRes.error, + }, + "Failed to scrub versions" + ); throw new Error(`Failed to scrub versions: ${sRes.error}`); }