Skip Menu |

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

Report information
The Basics
Id: 62568
Status: new
Priority: 0/
Queue: POE-Component-Logger

Owner: Nobody in particular
Requestors: dolmen [...]

Bug Information
Severity: Normal
Broken in:
  • 1.00
  • 1.00_01
  • 1.00_02
  • 1.01
Fixed in: (no value)

Subject: Fail early if ->spawn args are invalid or L::D::Config init fails
Download (untitled) / with headers
text/plain 608b
The arguments of ->spawn are given directly to POE::Session->create without checking them. For example, if the alias is invalid (duplicate), the session will be created but will crash in _stop. The stack trace will be huge as everything happens while in the POE::Kernel loop. Instead, PoCo::Logger->spawn should check its params early before creating the session. I do not see any reason to postpone the Log::Dispatch::Config initialization to the _start event (which is executed synchronously by POE::Session->create anyway). -- Olivier Mengué -

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

Please report any issues with to