From: | dam [...] cpan.org |
Subject: | test failure with Log-Dispatch 2.68 |
Hi,
Log-Dispatch-Message-Passing fails the t/basic.t test with
Log-Dispatch 2.68.
Log-Dispatch 2.68 changed its internals and the output's name is no
longer passed to the logging methods.
(this is after adding "or explain [$test->messages]" after the is_deeply
call)
The following patch compensates for the change making the test pass
again:
------------------------------------------------------------
--- a/lib/Log/Dispatch/Message/Passing.pm
+++ b/lib/Log/Dispatch/Message/Passing.pm
@@ -27,6 +27,7 @@ sub new {
sub log_message {
my ($self, %p) = @_;
+ $p{name} //= $self->{name};
$self->{output}->consume({%p});
}
------------------------------------------------------------