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:
parent
2ee681c630
commit
8dd3901080
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue