my $db_path = $config->{webpac}->{db_path} . '/' . $database;
if ($clean) {
- $log->info("creating new database $database in $db_path");
+ $log->info("creating new database '$database' in $db_path");
rmtree( $db_path ) || $log->warn("can't remove $db_path: $!");
} else {
- $log->debug("working on $database in $db_path");
+ $log->info("working on database '$database' in $db_path");
}
my $db = new WebPAC::Store(
my $input_module = $config->{webpac}->{inputs}->{$type};
- $log->info("working on input '$input->{path}' [$input->{type}] using $input_module lookup '$input->{lookup}'");
+ $log->info("working on input '$input->{name}' in $input->{path} [type: $input->{type}] using $input_module lookup '$input->{lookup}'");
my $input_db = new WebPAC::Input(
module => $input_module,
eval { $indexer->finish } if ($indexer && $indexer->can('finish'));
my $dt = time() - $start_t;
- $log->info("$total_rows records indexed in " .
- sprintf("%.2f sec [%.2f rec/sec]",
+ $log->info("$total_rows records ", $indexer ? "indexed " : "",
+ sprintf("in %.2f sec [%.2f rec/sec]",
$dt, ($total_rows / $dt)
)
);