[Koha-devel] A C4::Logger module would be useful ?

Paul Poulain paul.poulain at biblibre.com
Tue Jun 5 17:18:37 CEST 2012


Le 05/06/2012 17:01, Dobrica Pavlinusic a écrit :

> $SIG{__WARN__} = sub {
> 	C4::Logger->new->debug( @_ );
> }
> 
> Right now every warn in code makes patch fail QA (I know that first
> hand ;-) and it seems to me it's easier to just put warn instead of
> 
> C4::Logger->new->debug( "this used to be warn" );

I have nothing against this option, as it achieve the goal of having a
user-defined logging level.
At the moment, what fails QA is unconditional warns that fill everyone's
log file !

-- 
Paul POULAIN
http://www.biblibre.com
Expert en Logiciels Libres pour l'info-doc
Tel : (33) 4 91 81 35 08


More information about the Koha-devel mailing list