Skip to content

Commit

Permalink
Tweak the way unindex tasks are logged
Browse files Browse the repository at this point in the history
Only log after resolving indexer and indicate the name,
thus clearing any eventual confusion of this line appearing multiple times in repeat.
  • Loading branch information
Enet4 committed Sep 13, 2024
1 parent 9775fe3 commit 659156d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,8 @@ public void unindex(URI path, Collection<String> indexProviders) {
* and whether some of them were not found in the database
* @throws IOException
*/
public Task<UnindexReport> unindex(String indexProvider, Collection<URI> items, Consumer<Collection<URI>> progressCallback) throws IOException {
logger.info("Starting unindexing procedure for {} items", items.size());
public Task<UnindexReport> unindex(String indexProvider, Collection<URI> items,
Consumer<Collection<URI>> progressCallback) throws IOException {

IndexerInterface indexer = null;
if (indexProvider != null) {
Expand All @@ -781,6 +781,7 @@ public Task<UnindexReport> unindex(String indexProvider, Collection<URI> items,
if (indexer == null) {
indexer = this.getIndexingPlugins(true).iterator().next();
}
logger.info("[{}] Starting unindexing procedure for {} items", indexer.getName(), items.size());
Task<UnindexReport> task = indexer.unindex(items, progressCallback);
if (task != null) {
final String taskUniqueID = UUID.randomUUID().toString();
Expand Down

0 comments on commit 659156d

Please sign in to comment.