|
Lines 136-142
log4perl_component()
Link Here
|
| 136 |
local config=$1 |
136 |
local config=$1 |
| 137 |
local component=$2 |
137 |
local component=$2 |
| 138 |
|
138 |
|
| 139 |
if [ grep -q -x "log4perl.logger.$component" $config ]; then |
139 |
if grep -q -x "log4perl.logger.$component" $config; then |
| 140 |
return 0 |
140 |
return 0 |
| 141 |
else |
141 |
else |
| 142 |
return 1 |
142 |
return 1 |
|
Lines 146-152
log4perl_component()
Link Here
|
| 146 |
# Take care of the instance's log4perl.conf file |
146 |
# Take care of the instance's log4perl.conf file |
| 147 |
for site in $(koha-list); do |
147 |
for site in $(koha-list); do |
| 148 |
log4perl_config="/etc/koha/sites/$site/log4perl.conf" |
148 |
log4perl_config="/etc/koha/sites/$site/log4perl.conf" |
| 149 |
if [ !log4perl_component $log4perl_config "z3950" ]; then |
149 |
if !log4perl_component $log4perl_config "z3950"; then |
| 150 |
cat <<EOF >> $log4perl_config |
150 |
cat <<EOF >> $log4perl_config |
| 151 |
log4perl.logger.z3950 = WARN, Z3950 |
151 |
log4perl.logger.z3950 = WARN, Z3950 |
| 152 |
log4perl.appender.Z3950=Log::Log4perl::Appender::File |
152 |
log4perl.appender.Z3950=Log::Log4perl::Appender::File |
| 153 |
- |
|
|