Skip to content

Commit

Permalink
Merge pull request bioinformatics-ua#700 from bioinformatics-ua/imp/l…
Browse files Browse the repository at this point in the history
…og-unindex-start

Tweak the way unindex task starts are logged
  • Loading branch information
Enet4 authored Sep 16, 2024
2 parents 9775fe3 + 659156d commit 390ab78
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 390ab78

Please sign in to comment.