View | Details | Raw Unified | Return to bug 25510
Collapse All | Expand All

(-)a/debian/koha-common.postinst (-5 / +4 lines)
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
Lines 159-165 log4perl.appender.Z3950.utf8=1 Link Here
159
EOF
159
EOF
160
    fi
160
    fi
161
161
162
    if [ !log4perl_component $log4perl_config "api" ]; then
162
    if !log4perl_component $log4perl_config "api"; then
163
        cat <<EOF >> $log4perl_config
163
        cat <<EOF >> $log4perl_config
164
log4perl.logger.api = WARN, API
164
log4perl.logger.api = WARN, API
165
log4perl.appender.API=Log::Log4perl::Appender::File
165
log4perl.appender.API=Log::Log4perl::Appender::File
Lines 175-181 done Link Here
175
175
176
for site in $(koha-list); do
176
for site in $(koha-list); do
177
    log4perl_config="/etc/koha/sites/$site/log4perl.conf"
177
    log4perl_config="/etc/koha/sites/$site/log4perl.conf"
178
    if [ !log4perl_component $log4perl_config "sip" ]; then
178
    if !log4perl_component $log4perl_config "sip"; then
179
        cat <<EOF >> $log4perl_config
179
        cat <<EOF >> $log4perl_config
180
log4perl.logger.sip = DEBUG, SIP
180
log4perl.logger.sip = DEBUG, SIP
181
log4perl.appender.SIP=Log::Log4perl::Appender::File
181
log4perl.appender.SIP=Log::Log4perl::Appender::File
182
- 

Return to bug 25510