Bug 12478: Fix the verbose flag on reindexing
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 28 Aug 2015 10:08:27 +0000 (11:08 +0100)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 26 Apr 2016 20:20:08 +0000 (20:20 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
misc/search_tools/rebuild_elastic_search.pl

index 4cf25b3..babd6ec 100755 (executable)
@@ -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);
 }