fix warning for number of records
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 9 Jan 2014 12:27:26 +0000 (13:27 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 9 Jan 2014 12:27:26 +0000 (13:27 +0100)
lib/WebPAC/Input.pm

index dc33db8..34e59c4 100644 (file)
@@ -276,7 +276,7 @@ sub open {
 
        my $strict_encoding = $arg->{strict_encoding} || $self->{strict_encoding}; ## FIXME should be 1 really
 
-       $log->info("processing $self->{size}/$size records [$from_rec-$to_rec]",
+       $log->info("processing ", $self->{size} || 'all', "/$size records [$from_rec-$to_rec]",
                " encoding $input_encoding ", $strict_encoding ? ' [strict]' : '',
                $self->{stats} ? ' [stats]' : '',
        );