You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I'm filing this as a Dist-Zilla issue instead of in Log::Dispatchouli with the presumption that the logger could be configured differently to make things come out better. I don't know for sure, though!)
Messages sent to log_fatal are printed twice, for example:
[@Author::ETHER/stale modules, release] Aborting release
[@Author::ETHER/stale modules, release] To remedy, do: cpanm Dist::Zilla::Plugin::CheckPrereqsIndexed
[@Author::ETHER/stale modules, release] Aborting release
[@Author::ETHER/stale modules, release] To remedy, do: cpanm Dist::Zilla::Plugin::CheckPrereqsIndexed at /Users/ether/.perlbrew/libs/20.1@std/lib/perl5/darwin-2level/Moose/Meta/Method/Delegation.pm line 110.
PromptIfStale is definitely only calling log_fatal once, but the message is printed twice, once via the logger and once via Carp::croak. I traced the culprit code to Log::Dispatchouli::log:
It is a minor issue if message is sort, like 'Release aborted'. But it becomes ugly n case of multi-line message. For example, Mercurial::Check calls log_fatal with a list of not-yet-committed files, and the list is printed by dzil twice.
If Mercurial::Check or ConfirmRelease aborts the release by calling log_fatal, there is no need to report source location where the process was aborted.
So, the second appearance of fatal message is ugly redundant.
(I'm filing this as a Dist-Zilla issue instead of in Log::Dispatchouli with the presumption that the logger could be configured differently to make things come out better. I don't know for sure, though!)
Messages sent to
log_fatal
are printed twice, for example:PromptIfStale is definitely only calling log_fatal once, but the message is printed twice, once via the logger and once via
Carp::croak
. I traced the culprit code to Log::Dispatchouli::log:https://metacpan.org/source/RJBS/Log-Dispatchouli-2.012/lib/Log/Dispatchouli.pm#L298-308
The text was updated successfully, but these errors were encountered: