diff options
author | Eric Wong <e@80x24.org> | 2021-08-25 08:40:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-08-25 19:33:49 +0000 |
commit | b6eb866869609afef72c77f41507905828014673 (patch) | |
tree | 83431f9145a5614ce217ff108d224ec5dbc1e29e /lib/PublicInbox/LeiXSearch.pm | |
parent | 796e7215a167f36d0b950631c3b1e44fa47fec07 (diff) | |
download | public-inbox-b6eb866869609afef72c77f41507905828014673.tar.gz |
The "# $NR written to $DEST ($total matches)" messages are arguably the most useful output of "lei up --all=local", but they get intermixed with progress messages from various workers. Queue up these finalization messages and only spit them out on ->DESTROY.
Diffstat (limited to 'lib/PublicInbox/LeiXSearch.pm')
-rw-r--r-- | lib/PublicInbox/LeiXSearch.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index 1f83e582..b9f0d692 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -398,9 +398,12 @@ Error closing $lei->{ovv}->{dst}: $! if ($lei->{-progress}) { my $tot = $lei->{-mset_total} // 0; my $nr = $lei->{-nr_write} // 0; - $lei->qerr($l2m ? - "# $nr written to $lei->{ovv}->{dst} ($tot matches)" : - "# $tot matches"); + if ($l2m) { + $lei->qfin("# $nr written to " . + "$lei->{ovv}->{dst} ($tot matches)"); + } else { + $lei->qerr("# $tot matches"); + } } $lei->start_mua if $start_mua; $lei->dclose; |