--- lib/Grep/Search.pm 2007/02/24 12:16:57 98 +++ lib/Grep/Search.pm 2007/03/04 22:16:23 102 @@ -12,7 +12,7 @@ my ( $analyzer, $store, $writer ); -my $debug = 1; +my $debug = 0; my $create; sub create { @@ -171,7 +171,7 @@ my $title = $doc->get("title"); my $id = $doc->get("id"); - warn "## $i $score $title\n"; + $self->log->debug("result $i $score $title"); my $item = Grep::Model::Item->new(); my ($ok,$msg) = $item->load_by_cols( id => $id ); @@ -202,7 +202,7 @@ sub finish { my $self = shift; if ($writer) { - warn "closing index\n"; + $self->log->debug("closing index"); $writer->close; } undef $writer;