Subject: | Fail early if ->spawn args are invalid or L::D::Config init fails |
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é - http://search.cpan.org/~dolmen/ http://github.com/dolmen/