From 7ca24ff63925b8cd3a305bb70ad05c35d428a886 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 15 Jan 2026 19:31:21 +0000 Subject: [PATCH] lei sucks: display xap_helper implementation Knowing which xap_helper implementation a user is using will allow us to improve diagnoses of certain bugs. --- lib/PublicInbox/LeiSucks.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/PublicInbox/LeiSucks.pm b/lib/PublicInbox/LeiSucks.pm index ddb3faf7d..fcaf48d66 100644 --- a/lib/PublicInbox/LeiSucks.pm +++ b/lib/PublicInbox/LeiSucks.pm @@ -55,6 +55,10 @@ sub lei_sucks { } else { push @out, "Xapian not available: $@\n"; } + require PublicInbox::XapClient; + my $xhc = PublicInbox::XapClient::start_helper(qw(-l -j0)); + push(@out, $xhc ? "xap_helper: $xhc->{impl}\n" + : "xap_helper not available\n"); push @out, "public-inbox blob OIDs of loaded features:\n"; for my $m (grep(m{^PublicInbox/}, sort keys %INC)) { my $f = $INC{$m} // next; # lazy require failed (missing dep) -- 2.47.3