[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TRUNK: Log4Perl - Forgot to call init()



On Fri, Mar 16, 2012 at 3:20 PM, Andres Basile <..hidden..> wrote:
> REV: 4488
> I was getting a lot of errors on the Apace log regarding Log4Perl:
>
> [Fri Mar 16 18:26:59 2012] [error] [client 192.168.1.2] Log4perl: Seems like
> no initialization happened. Forgot to call init()?, referer:
> http://192.168.1.64/ledgersmb/user.pl
> [Fri Mar 16 18:27:40 2012] [error] [client 192.168.1.2] Log4perl: Seems like
> no initialization happened. Forgot to call init()?, referer:
> http://192.168.1.64/ledgersmb/ar.pl?login=user&action=add&module=ar.pl&;
>
> Testing I have initialized it on the handler and it worked for some modules
> but not for others. I was looking for a common place where paste it:
> lsmb-request.pl -> Line 42
> Log::Log4perl::init(\$LedgerSMB::Sysconfig::log4perl_config);
>
> Digging I found a difference with 1.3.13 where it is working fine:
> LedgerSMB/Log.pm:Log::Log4perl::init(\$LedgerSMB::Sysconfig::log4perl_config);
> I didn't find the Log.pm on the SVN and just wonder why?

Committed.

For trunk, LedgerSMB/Log was removed since we were just using
Log::Log4perl instead.

Best Wishes,
Chris Travers