Skip to content

Apache Lucene open-source search software

fix ContentItemsSource.printStatistics to print only if verbose

Shai Erera7b4eed2664d2
diff --git a/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java b/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java
index d89d88875a9..20f75829b64 100644
--- a/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java
+++ b/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java
@@ -149,6 +149,9 @@ public abstract class ContentItemsSource {
}
public void printStatistics(String itemsName) {
+ if (!verbose) {
+ return;
+ }
boolean print = false;
String col = " ";
StringBuilder sb = new StringBuilder();