Bug 12478: Fix the verbose flag on reindexing

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>
This commit is contained in:
Jonathan Druart 2015-08-28 11:08:27 +01:00 committed by Brendan Gallagher
parent 2ee681c630
commit 8dd3901080
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}