Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak the way unindex task starts are logged #700

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading