5 Jun
2012
5 Jun
'12
4:18 p.m.
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