Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Log-Any CPAN distribution.

Maintainer(s)' notes

DO NOT FILE TICKETS HERE

Instead, file tickets on Github here → Log Any Issues.

Report information
The Basics
Id: 64164
Status: resolved
Priority: 0/
Queue: Log-Any

People
Owner: Nobody in particular
Requestors: chip [...] pobox.com
Cc:
AdminCc:

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



Subject: The is_xxx methods should return a value
The Null adapter's is_xxx methods consist of sub {} which isn't the boolean return that could be expected. Consider someone trying to make a list of the is_xxx flags: @a = map { $logany->$_ } qw( is_debug is_inform is_warn ); That list ends up empty with the current code. I suggest the the default is_xxx method body should return a scalar false value -- undef, 0, or ''
Yup, good point. Fixed in next release. On Wed Dec 22 18:27:35 2010, CHIPS wrote: Show quoted text
> The Null adapter's is_xxx methods consist of sub {} which isn't the > boolean return that could be expected. Consider someone trying to make a > list of the is_xxx flags: > > @a = map { $logany->$_ } qw( is_debug is_inform is_warn ); > > That list ends up empty with the current code. > I suggest the the default is_xxx method body should return a scalar false > value -- undef, 0, or ''
Fixed in 0.12