[Koha-bugs] [Bug 14906] Koha::Logger does not correctly handle instantiation errors

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 8 12:12:03 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14906

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA

--- Comment #3 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
First chmod your opac logfile to 400.
Second, try this test please:

use Koha::Logger;
my $logger = Koha::Logger->get({ interface => 'opac' });
$logger->warn('L4');

Without this patch, you will have no warning since the log is not writable.
With your patch, the program will crash (on the following call on line 132
after calling _check_conf):
    Log::Log4perl->init_once($conf);
The intention of the code in Logger.pm was just to prevent such a crash.
This patch reintroduces it.

Failed QA

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list