sub announce {
my $msg = shift;
- return unless $verbose;
- print DateTime->now->strftime('%F %T') . " $msg\n";
+ my $force = shift;
+ return unless $force || $verbose;
+ print DateTime->now->strftime('%F %T') . " [$$] $msg\n";
}
if (!$result or $options{help}) {
my $count = 0;
my $total = scalar(@records);
+announce("processing $total bib records", 1);
+
foreach my $rec_id (@records) {
$count++;
+
+ announce("processing $count of $total", 1) if ($count % 1000) == 0;
+
announce("processing bib record $rec_id [$count of $total]");
# State variable; was the record changed?