--- trunk/lib/WebPAC/Input.pm 2005/12/18 23:34:30 292 +++ trunk/lib/WebPAC/Input.pm 2005/12/20 19:01:22 308 @@ -3,11 +3,10 @@ use warnings; use strict; -use blib; - use WebPAC::Common; use base qw/WebPAC::Common/; use Text::Iconv; +use Data::Dumper; =head1 NAME @@ -101,8 +100,7 @@ my $n = $self->{module} . '::' . $subclass; if (! defined &{ $n }) { my $missing = "missing $subclass in $self->{module}"; - $log->logwarn($missing); - $self->{$subclass} = sub { warn "$missing\n" }; + $self->{$subclass} = sub { $log->logwarn($missing) }; } else { $self->{$subclass} = \&{ $n }; } @@ -210,7 +208,7 @@ } if ($self->{limit}) { - $log->info("limiting to ",$self->{limit}," records"); + $log->debug("limiting to ",$self->{limit}," records"); $limit = $offset + $self->{limit} - 1; $limit = $size if ($limit > $size); } @@ -227,6 +225,8 @@ my $rec = $self->{fetch_rec}->($self, $db, $pos ); + $log->debug(sub { Dumper($rec) }); + if (! $rec) { $log->warn("record $pos empty? skipping..."); next;