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: 53398
Status: resolved
Priority: 0/
Queue: Log-Any

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

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



Subject: handle undef in errorf/debugf/...
$log->debugf("%s", undef) currently produces warning: Use of uninitialized value $new_params[1] in sprintf at /usr/lib/perl5/site_perl/5.10.1/Log/Any/Adapter/Base.pm line 45.

Since the printf-style already does something Data::Dumper-like by dumping references, maybe print undef as 'undef' too, like Data::Dumper? This will avoid the above warnings when arguments are undef.
Good point! I'll add this to the next release.

On Tue Jan 05 07:46:28 2010, SHARYANTO wrote:
Show quoted text
> $log->debugf("%s", undef) currently produces warning: Use of uninitialized
> value $new_params[1] in sprintf at
> /usr/lib/perl5/site_perl/5.10.1/Log/Any/Adapter/Base.pm line 45.
>
> Since the printf-style already does something Data::Dumper-like by dumping
> references, maybe print undef as 'undef' too, like Data::Dumper? This will
> avoid the above warnings when arguments are undef.