--- trunk/lib/WebPAC/Output/Estraier.pm 2005/11/21 19:18:16 84 +++ trunk/lib/WebPAC/Output/Estraier.pm 2005/11/22 08:27:53 85 @@ -92,7 +92,7 @@ $log->info("using encoding $encoding"); $self->{'iconv'} = new Text::Iconv($encoding, 'UTF-8') or - $log->die("can't create conversion from $encoding to UTF-8"); + $log->logdie("can't create conversion from $encoding to UTF-8"); $self ? return $self : return undef; } @@ -160,7 +160,7 @@ $log->logconfess("no values for $tag/$type") unless ($vals); $vals = $self->{'iconv'}->convert( $vals ) or - $log->die("can't convert '$vals' to UTF-8"); + $log->logdie("can't convert '$vals' to UTF-8"); $doc->add_attr( $tag, $vals ); $doc->add_hidden_text( $vals ); @@ -169,12 +169,12 @@ my $text = $args->{'text'}; if ( $text ) { $text = $self->{'iconv'}->convert( $text ) or - $log->die("can't convert '$text' to UTF-8"); + $log->logdie("can't convert '$text' to UTF-8"); $doc->add_text( $text ); } $log->debug("adding ", sub { $doc->dump_draft } ); - $self->{'db'}->put_doc($doc) || $log->die("can't add document $uri to index"); + $self->{'db'}->put_doc($doc) || $log->logdie("can't add document $uri to index"); return 1; }