Skip to content

Commit

Permalink
fix count logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kadamidev committed Feb 4, 2025
1 parent 3bb116f commit 153368a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ async function main() {

let i = 0;
for (const { id, uuid } of slicedNodeUuids) {
logger.info({ uuid, nodeId: id }, `[ES Native Node Backfill] Indexing node ${i}/${nodeUuids.length}`);
logger.info({ uuid, nodeId: id }, `[ES Native Node Backfill] Indexing node ${i}/${slicedNodeUuids.length}`);
const result = await ElasticNodesService.indexResearchObject(uuid);
if ('success' in result && !result.success) {
logger.error({ uuid, nodeId: id, error: result.error }, 'Error indexing node');
failures.push(result);
}
logger.info({ uuid, nodeId: id }, `[ES Native Node Backfill] Completed indexing node ${i}/${nodeUuids.length}`);
logger.info(
{ uuid, nodeId: id },
`[ES Native Node Backfill] Completed indexing node ${i}/${slicedNodeUuids.length}`,
);
i++;
}

Expand Down

0 comments on commit 153368a

Please sign in to comment.