From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 39C211FA01 for ; Sun, 10 Oct 2021 14:25:19 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/8] admin: add '# ' prefix for progress messages Date: Sun, 10 Oct 2021 14:25:12 +0000 Message-Id: <20211010142518.7012-3-e@80x24.org> In-Reply-To: <20211010142518.7012-1-e@80x24.org> References: <20211010142518.7012-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '# ', @_ }; } }