]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-index
index: warn with info about the message as context
[public-inbox.git] / script / public-inbox-index
index 5adb6e741eff8f2578a780bd40738cd7c42ee7a6..2f810a564f01367a592c0862705074e077a193c9 100755 (executable)
@@ -85,6 +85,9 @@ sub index_dir {
                                }
                        }
                }
+               local $SIG{__WARN__} = sub {
+                       print STDERR $v2w->{current_info}, ': ', @_;
+               };
                $v2w->index_sync({ reindex => $reindex, prune => $prune });
        } else {
                my $s = PublicInbox::SearchIdx->new($repo, 1);