Skip to content

Commit

Permalink
add logs for debug purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
m-maillot committed Jul 4, 2024
1 parent 3fe945d commit faa5249
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ import { GetBreadcrumbsFn } from "../breadcrumbs";
export const generatePrequalified = async (
getBreadcrumbs: GetBreadcrumbsFn
): Promise<PrequalifiedElasticDocument[]> => {
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,
Expand Down
1 change: 1 addition & 0 deletions targets/export-elasticsearch/src/services/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit faa5249

Please sign in to comment.