Skip Menu |
 

This queue is for tickets about the POE-Component-Logger CPAN distribution.

Report information
The Basics
Id: 62397
Status: resolved
Priority: 0/
Queue: POE-Component-Logger

People
Owner: dolmen [...] cpan.org
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 1.00
  • 1.00_01
  • 1.00_02
  • 1.01
Fixed in: 1.10



Subject: Logger->log does not uses $DefaultLevel synchronously
Download (untitled) / with headers
text/plain 751b
$DefaultLevel is currently (1.00) used when a log event is processed in the queue. However, when Logger->log is called with a scalar argument and DefaultLevel is changed before log events are processed by the Logger session, the log message may not be dispatched at the level expected. I have added a test showing that behavior in the test suite: http://github.com/dolmen/POE-Component-Logger/commit/0d44a1e47e8ccde1e07357efba26a6ffb9005384 Workaround: use the HASH form of Logger->log: use: Logger->log({ level => 'error', message => 'Ouch' }); not: { local $POE::Component::Logger::DefaultLevel = 'error'; Logger->log('Ouch'); } -- Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/
Download (untitled) / with headers
text/plain 212b
Patched in branch RT62397-DefaultLevel. Planned for release 1.10. Roadmap: http://www.mail-archive.com/poe@perl.org/msg04601.html -- Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/
Download (untitled) / with headers
text/plain 116b
Fixed 3 months ago in release 1.10. -- Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.