diff --git a/targets/export-elasticsearch/src/ingester/prequalified/generatePrequalified.ts b/targets/export-elasticsearch/src/ingester/prequalified/generatePrequalified.ts index a7e7c7ac84..9036053671 100644 --- a/targets/export-elasticsearch/src/ingester/prequalified/generatePrequalified.ts +++ b/targets/export-elasticsearch/src/ingester/prequalified/generatePrequalified.ts @@ -10,10 +10,12 @@ import { GetBreadcrumbsFn } from "../breadcrumbs"; export const generatePrequalified = async ( getBreadcrumbs: GetBreadcrumbsFn ): Promise => { + console.log("Fetch prequalified"); const prequalified = await fetchPrequalified(); if (!prequalified) { return []; } + console.log("Map prequalified"); return prequalified.map(({ variants, id, title, documents: refs }) => ({ cdtnId: id, id, diff --git a/targets/export-elasticsearch/src/services/export.ts b/targets/export-elasticsearch/src/services/export.ts index de6c74d4dc..4c9f4ded2f 100644 --- a/targets/export-elasticsearch/src/services/export.ts +++ b/targets/export-elasticsearch/src/services/export.ts @@ -96,6 +96,7 @@ export class ExportService { : "La mise à jour de la production a échouée. 😭", process.env.MATTERMOST_CHANNEL_EXPORT ); + console.error("Failure", e); return await this.exportRepository.updateOne( id, Status.failed,