[Koha-bugs] [Bug 14906] New: Koha::Logger does not correctly handle instantiation errors
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Sep 28 11:08:30 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14906
Bug ID: 14906
Summary: Koha::Logger does not correctly handle instantiation
errors
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: gmcharlt at gmail.com
Reporter: jonathan.druart at bugs.koha-community.org
QA Contact: testopia at bugs.koha-community.org
Koha::Logger should log in the regular log files if the paths are not correctly
set (does not exist, no permission to write, etc.).
Also, the _check_conf subroutine will fail (return undef) if at least 1 path is
not correctly defined, which is not necessary:
154 foreach my $l (@lines) {
155 if ( $l =~ /(OPAC|INTRANET)\.filename\s*=\s*(.*)\s*$/i ) {
156
157 # we only check the two default logfiles, skipping additional
ones
158 return if !-w $2;
159 push @logs, $1 . ':' . $2;
160 }
161 }
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list