Thread (71 messages) 71 messages, 4 authors, 2017-11-07

Re: [PATCH v3 7/7] remote-mediawiki: show progress while fetching namespaces

From: Thomas Adam <hidden>
Date: 2017-11-04 09:57:49

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help