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

(-)a/debian/koha-common.postinst (-16 / +16 lines)
Lines 237-242 EOF Link Here
237
    fi
237
    fi
238
done
238
done
239
239
240
for site in $(koha-list); do
241
    log4perl_config="/etc/koha/sites/$site/log4perl.conf"
242
    if ! log4perl_component $log4perl_config "worker"; then
243
        cat <<EOF >> $log4perl_config
244
log4perl.logger.worker = WARN, WORKER
245
log4perl.appender.WORKER=Log::Log4perl::Appender::Screen
246
log4perl.appender.WORKER.stderr=1
247
log4perl.appender.WORKER.mode=append
248
log4perl.appender.WORKER.layout=PatternLayout
249
log4perl.appender.WORKER.layout.ConversionPattern=[%d] [%p] %m %l%n
250
log4perl.appender.WORKER.utf8=1
251
252
EOF
253
    fi
254
done
255
240
for site in $(koha-list); do
256
for site in $(koha-list); do
241
    kohaconfig="/etc/koha/sites/$site/koha-conf.xml"
257
    kohaconfig="/etc/koha/sites/$site/koha-conf.xml"
242
    logdir="$( xmlstarlet sel -t -v 'yazgfs/config/logdir' $kohaconfig )"
258
    logdir="$( xmlstarlet sel -t -v 'yazgfs/config/logdir' $kohaconfig )"
Lines 267-286 service rabbitmq-server restart Link Here
267
update-rc.d koha-common disable
283
update-rc.d koha-common disable
268
update-rc.d koha-common enable
284
update-rc.d koha-common enable
269
285
270
for site in $(koha-list); do
271
    log4perl_config="/etc/koha/sites/$site/log4perl.conf"
272
    if ! log4perl_component $log4perl_config "worker"; then
273
        cat <<EOF >> $log4perl_config
274
log4perl.logger.worker = WARN, WORKER
275
log4perl.appender.WORKER=Log::Log4perl::Appender::Screen
276
log4perl.appender.WORKER.stderr=1
277
log4perl.appender.WORKER.mode=append
278
log4perl.appender.WORKER.layout=PatternLayout
279
log4perl.appender.WORKER.layout.ConversionPattern=[%d] [%p] %m %l%n
280
log4perl.appender.WORKER.utf8=1
281
282
EOF
283
    fi
284
done
285
286
exit 0
286
exit 0
(-)a/debian/koha-core.postinst (+16 lines)
Lines 237-242 EOF Link Here
237
    fi
237
    fi
238
done
238
done
239
239
240
for site in $(koha-list); do
241
    log4perl_config="/etc/koha/sites/$site/log4perl.conf"
242
    if ! log4perl_component $log4perl_config "worker"; then
243
        cat <<EOF >> $log4perl_config
244
log4perl.logger.worker = WARN, WORKER
245
log4perl.appender.WORKER=Log::Log4perl::Appender::Screen
246
log4perl.appender.WORKER.stderr=1
247
log4perl.appender.WORKER.mode=append
248
log4perl.appender.WORKER.layout=PatternLayout
249
log4perl.appender.WORKER.layout.ConversionPattern=[%d] [%p] %m %l%n
250
log4perl.appender.WORKER.utf8=1
251
252
EOF
253
    fi
254
done
255
240
for site in $(koha-list); do
256
for site in $(koha-list); do
241
    kohaconfig="/etc/koha/sites/$site/koha-conf.xml"
257
    kohaconfig="/etc/koha/sites/$site/koha-conf.xml"
242
    logdir="$( xmlstarlet sel -t -v 'yazgfs/config/logdir' $kohaconfig )"
258
    logdir="$( xmlstarlet sel -t -v 'yazgfs/config/logdir' $kohaconfig )"
(-)a/debian/templates/log4perl-site.conf.in (-2 / +8 lines)
Lines 38-44 log4perl.appender.SIP.layout=PatternLayout Link Here
38
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%P] [%p] %X{accountid}@%X{peeraddr}: %m %l%n
38
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%P] [%p] %X{accountid}@%X{peeraddr}: %m %l%n
39
log4perl.appender.SIP.utf8=1
39
log4perl.appender.SIP.utf8=1
40
40
41
42
log4perl.logger.plack-opac = WARN, PLACKOPAC
41
log4perl.logger.plack-opac = WARN, PLACKOPAC
43
log4perl.appender.PLACKOPAC=Log::Log4perl::Appender::File
42
log4perl.appender.PLACKOPAC=Log::Log4perl::Appender::File
44
log4perl.appender.PLACKOPAC.filename=__LOG_DIR__/plack-opac-error.log
43
log4perl.appender.PLACKOPAC.filename=__LOG_DIR__/plack-opac-error.log
Lines 62-64 log4perl.appender.PLACKINTRANET.mode=append Link Here
62
log4perl.appender.PLACKINTRANET.layout=PatternLayout
61
log4perl.appender.PLACKINTRANET.layout=PatternLayout
63
log4perl.appender.PLACKINTRANET.layout.ConversionPattern=[%d] [%p] %m%n
62
log4perl.appender.PLACKINTRANET.layout.ConversionPattern=[%d] [%p] %m%n
64
log4perl.appender.PLACKINTRANET.utf8=1
63
log4perl.appender.PLACKINTRANET.utf8=1
65
- 
64
65
log4perl.logger.worker = WARN, WORKER
66
log4perl.appender.WORKER=Log::Log4perl::Appender::Screen
67
log4perl.appender.WORKER.stderr=1
68
log4perl.appender.WORKER.mode=append
69
log4perl.appender.WORKER.layout=PatternLayout
70
log4perl.appender.WORKER.layout.ConversionPattern=[%d] [%p] %m %l%n
71
log4perl.appender.WORKER.utf8=1

Return to bug 32612