Skip to content

Commit

Permalink
GH-537 Add lucene index id to logs when reindexing
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Dec 3, 2024
1 parent 4d111d7 commit 4404ac6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ public void reindexLuceneSail(String index) throws SailException {
NotifyingSail oldSail = sail.getBaseSail();
try {
sail.setBaseSail(source);
String indexId = sail.getParameter(LuceneSail.INDEX_ID);
if (indexId == null || indexId.isEmpty()) {
indexId = "no id";
}
logger.info("Reindexing sail: " + indexId);
sail.reindex();
} finally {
sail.setBaseSail(oldSail);
Expand Down

0 comments on commit 4404ac6

Please sign in to comment.