From: Eric Wong Date: Sun, 10 Oct 2021 14:25:12 +0000 (+0000) Subject: admin: add '# ' prefix for progress messages X-Git-Tag: v1.7.0~201 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=0e71e72e39472832c97866c7f32f4a62d7b7e6a0;p=public-inbox.git admin: add '# ' prefix for progress messages It's more consistent with TAP output and hopefully puts users at ease in case they don't understand the meaning of a message. --- diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm index a17a632c..11ea8f83 100644 --- a/lib/PublicInbox/Admin.pm +++ b/lib/PublicInbox/Admin.pm @@ -320,7 +320,7 @@ sub progress_prepare ($;$) { } else { $opt->{verbose} ||= 1; $dst //= *STDERR{GLOB}; - $opt->{-progress} = sub { print $dst @_ }; + $opt->{-progress} = sub { print $dst '# ', @_ }; } }