From 8dd390108046ccf601eec11d4d913df81ddcb894 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 28 Aug 2015 11:08:27 +0100 Subject: [PATCH] Bug 12478: Fix the verbose flag on reindexing Signed-off-by: Nick Clemens Signed-off-by: Jesse Weaver Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall Signed-off-by: Brendan Gallagher --- misc/search_tools/rebuild_elastic_search.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/search_tools/rebuild_elastic_search.pl b/misc/search_tools/rebuild_elastic_search.pl index 4cf25b38f6..babd6ecd82 100755 --- a/misc/search_tools/rebuild_elastic_search.pl +++ b/misc/search_tools/rebuild_elastic_search.pl @@ -101,7 +101,7 @@ GetOptions( 'a|authorities' => \$index_authorities, 'b|biblios' => \$index_biblios, 'bn|bnumber=i' => \@biblionumbers, - 'v|verbose!' => \$verbose, + 'v|verbose+' => \$verbose, 'h|help' => \$help, 'man' => \$man, ); @@ -194,5 +194,5 @@ sub do_reindex { sub _log { my ($level, $msg) = @_; - print $msg if ($verbose <= $level); + print $msg if ($verbose >= $level); } -- 2.39.5