From 659156dcc111b2a6fe65aa15b1e70e52c7aecad3 Mon Sep 17 00:00:00 2001 From: Eduardo Pinho Date: Fri, 13 Sep 2024 16:01:50 +0100 Subject: [PATCH] Tweak the way unindex tasks are logged Only log after resolving indexer and indicate the name, thus clearing any eventual confusion of this line appearing multiple times in repeat. --- .../main/java/pt/ua/dicoogle/plugins/PluginController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dicoogle/src/main/java/pt/ua/dicoogle/plugins/PluginController.java b/dicoogle/src/main/java/pt/ua/dicoogle/plugins/PluginController.java index 117ad5c1c..9e8a1341b 100755 --- a/dicoogle/src/main/java/pt/ua/dicoogle/plugins/PluginController.java +++ b/dicoogle/src/main/java/pt/ua/dicoogle/plugins/PluginController.java @@ -771,8 +771,8 @@ public void unindex(URI path, Collection indexProviders) { * and whether some of them were not found in the database * @throws IOException */ - public Task unindex(String indexProvider, Collection items, Consumer> progressCallback) throws IOException { - logger.info("Starting unindexing procedure for {} items", items.size()); + public Task unindex(String indexProvider, Collection items, + Consumer> progressCallback) throws IOException { IndexerInterface indexer = null; if (indexProvider != null) { @@ -781,6 +781,7 @@ public Task unindex(String indexProvider, Collection items, if (indexer == null) { indexer = this.getIndexingPlugins(true).iterator().next(); } + logger.info("[{}] Starting unindexing procedure for {} items", indexer.getName(), items.size()); Task task = indexer.unindex(items, progressCallback); if (task != null) { final String taskUniqueID = UUID.randomUUID().toString();