Skip Menu |

This queue is for tickets about the Log-Dispatch-Message-Passing CPAN distribution.

Report information
The Basics
Id: 127156
Status: new
Priority: 0/
Queue: Log-Dispatch-Message-Passing

People
Owner: Nobody in particular
Requestors: dam [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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}); } ------------------------------------------------------------