Skip to content

Commit

Permalink
add some diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jan 10, 2014
1 parent f46a388 commit 046ade1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Ilbot/Backend/Search.pm
Expand Up @@ -3,6 +3,8 @@ use strict;
use warnings;
use 5.010;

use Carp qw/confess/;

use Lucy::Index::Indexer;
use Lucy::Plan::Schema;
use Lucy::Analysis::PolyAnalyzer;
Expand Down Expand Up @@ -68,6 +70,9 @@ sub index_all {
my $verbose = $opt{verbose};
my $count++;
for my $channel (@{ $self->backend->channels }) {
if (ref $channel) {
confess "Internal error: \$channel is ref ($channel), should a channel name";
}
my $b = $self->backend->channel(channel => $channel);
my $i = $self->indexer(channel => $channel);
say $channel if $verbose;
Expand Down

0 comments on commit 046ade1

Please sign in to comment.