From 759493eb1eb737e9dedd30b8280bc4067077c615 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 13 Oct 2021 07:00:34 +0000 Subject: extindex: show OID on bad blob failure AFAIK I've never hit these messages, but I might be glad if I ever do. --- lib/PublicInbox/ExtSearchIdx.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/ExtSearchIdx.pm') diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm index 40489eab..ddb16241 100644 --- a/lib/PublicInbox/ExtSearchIdx.pm +++ b/lib/PublicInbox/ExtSearchIdx.pm @@ -595,11 +595,11 @@ sub _reindex_oid { # git->cat_async callback my $oidbin = pack('H*', $expect_oid); my $remain = _unref_doc($sync, $docid, undef, undef, $oidbin); if ($remain == 0) { - warn "W: #$docid gone or corrupted\n"; + warn "W: #$docid ($oid) gone or corrupt\n"; } elsif (my $next_oid = $req->{xr3r}->[++$req->{ix}]->[2]) { $self->git->cat_async($next_oid, \&_reindex_oid, $req); } else { - warn "BUG: #$docid gone (UNEXPECTED)\n"; + warn "BUG: #$docid ($oid) gone (UNEXPECTED)\n"; } return; } -- cgit v1.2.3-24-ge0c7