]> Sergey Matveev's repositories - public-inbox.git/commitdiff
admin: add '# ' prefix for progress messages
authorEric Wong <e@80x24.org>
Sun, 10 Oct 2021 14:25:12 +0000 (14:25 +0000)
committerEric Wong <e@80x24.org>
Sun, 10 Oct 2021 23:29:50 +0000 (23:29 +0000)
It's more consistent with TAP output and hopefully puts
users at ease in case they don't understand the meaning
of a message.

lib/PublicInbox/Admin.pm

index a17a632ceb8606d8ded62ae3398f62609103a12b..11ea8f8307c2082ec974d51763df3f5f2983fa8c 100644 (file)
@@ -320,7 +320,7 @@ sub progress_prepare ($;$) {
        } else {
                $opt->{verbose} ||= 1;
                $dst //= *STDERR{GLOB};
-               $opt->{-progress} = sub { print $dst @_ };
+               $opt->{-progress} = sub { print $dst '# ', @_ };
        }
 }