Skip to content

Commit

Permalink
Added extra logging for exceptions when indexing orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Camelia-Orcid committed Sep 6, 2024
1 parent 1da041f commit d484dd0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ synchronized public void processOrgsForIndexing() {
entities = orgDisambiguatedDaoReadOnly.findOrgsPendingIndexing(startIndex, indexingBatchSize);
LOGGER.info("Found chunk of {} disambiguated orgs for indexing", entities.size());
for (OrgDisambiguatedEntity entity : entities) {
processDisambiguatedOrgInTransaction(entity);
try {
processDisambiguatedOrgInTransaction(entity);
}
catch(Exception ex) {
LOGGER.error("@@@FAILED to process the disambiguated org" + entity.getId() + " source id: " + entity.getSourceId(), ex);
}
}
startIndex = startIndex + indexingBatchSize;
} while (!entities.isEmpty());
Expand Down

0 comments on commit d484dd0

Please sign in to comment.