Re: [PATCH v3 7/7] remote-mediawiki: show progress while fetching namespaces
- From
Thomas Adam <thomas@xteddy.org>
- Date
- Nov 4, 2017, 09:57 UTC
- Message-ID
- <20171104095740.hhdgcqgtyjejmqjm@laptop.local>
- In-Reply-To
- <87o9ok46qu.fsf@curie.anarc.at>
On Thu, Nov 02, 2017 at 07:10:17PM -0400, Antoine Beaupré wrote:
> Actually, is there a standard way to do this in git with Perl > extensions? I know about "option verbosity N" but how should I translate > this into Perl? Carp? Warn? Log::Any? Log4perl?
No, not really. From a quick glance at some of the existing perl code in git, a lot of it continues to use "print STDERR" -- but then to be fair, a lot of the perl code also reads like it has been written by C programmers...
While there's nothing wrong with using "print STDERR", it's probably wiser to transition this to using Carp in the long run -- it would decrease the round-trip time to debugging should there be a situation where that was needed, and hence I would recommend using "warn" for less-severe errors/debugging.
-- Thomas Adam