Bugzilla – Attachment 110253 Details for
Bug 16357
Plack error logs are not time stamped
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16357: (QA follow-up) Add log4perl configs during package upgrade
Bug-16357-QA-follow-up-Add-log4perl-configs-during.patch (text/plain), 2.88 KB, created by
Martin Renvoize (ashimema)
on 2020-09-17 08:26:11 UTC
(
hide
)
Description:
Bug 16357: (QA follow-up) Add log4perl configs during package upgrade
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-09-17 08:26:11 UTC
Size:
2.88 KB
patch
obsolete
>From 1654db8c909655ab492a9b87d8c200f92886fc50 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Joonas=20Kylm=C3=A4l=C3=A4?= <joonas.kylmala@helsinki.fi> >Date: Tue, 25 Aug 2020 12:22:29 +0000 >Subject: [PATCH] Bug 16357: (QA follow-up) Add log4perl configs during package > upgrade > >If plack.psgi is updated to the newer version and the log4perl.conf file >is not then the warnings will not be logged anywhere. This adds the >log4perl configurations that are needed for logging for pre-existing Koha >installation which are upgraded. > >Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > debian/koha-common.postinst | 48 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 48 insertions(+) > >diff --git a/debian/koha-common.postinst b/debian/koha-common.postinst >index fcdeaa9f73..7ae28bc596 100644 >--- a/debian/koha-common.postinst >+++ b/debian/koha-common.postinst >@@ -189,6 +189,54 @@ EOF > fi > done > >+for site in $(koha-list); do >+ log4perl_config="/etc/koha/sites/$site/log4perl.conf" >+ if ! log4perl_component $log4perl_config "plack-opac"; then >+ cat <<EOF >> $log4perl_config >+log4perl.logger.plack-opac = WARN, PLACKOPAC >+log4perl.appender.PLACKOPAC=Log::Log4perl::Appender::File >+log4perl.appender.PLACKOPAC.filename=/var/log/koha/$site/plack-opac-error.log >+log4perl.appender.PLACKOPAC.mode=append >+log4perl.appender.PLACKOPAC.layout=PatternLayout >+log4perl.appender.PLACKOPAC.layout.ConversionPattern=[%d] [%p] %m >+log4perl.appender.PLACKOPAC.utf8=1 >+ >+EOF >+ fi >+done >+ >+for site in $(koha-list); do >+ log4perl_config="/etc/koha/sites/$site/log4perl.conf" >+ if ! log4perl_component $log4perl_config "plack-api"; then >+ cat <<EOF >> $log4perl_config >+log4perl.logger.plack-api = WARN, PLACKAPI >+log4perl.appender.PLACKAPI=Log::Log4perl::Appender::File >+log4perl.appender.PLACKAPI.filename=/var/log/koha/$site/plack-api-error.log >+log4perl.appender.PLACKAPI.mode=append >+log4perl.appender.PLACKAPI.layout=PatternLayout >+log4perl.appender.PLACKAPI.layout.ConversionPattern=[%d] [%p] %m >+log4perl.appender.PLACKAPI.utf8=1 >+ >+EOF >+ fi >+done >+ >+for site in $(koha-list); do >+ log4perl_config="/etc/koha/sites/$site/log4perl.conf" >+ if ! log4perl_component $log4perl_config "plack-intranet"; then >+ cat <<EOF >> $log4perl_config >+log4perl.logger.plack-intranet = WARN, PLACKINTRANET >+log4perl.appender.PLACKINTRANET=Log::Log4perl::Appender::File >+log4perl.appender.PLACKINTRANET.filename=/var/log/koha/$site/plack-intranet-error.log >+log4perl.appender.PLACKINTRANET.mode=append >+log4perl.appender.PLACKINTRANET.layout=PatternLayout >+log4perl.appender.PLACKINTRANET.layout.ConversionPattern=[%d] [%p] %m >+log4perl.appender.PLACKINTRANET.utf8=1 >+ >+EOF >+ fi >+done >+ > for site in $(koha-list); do > kohaconfig="/etc/koha/sites/$site/koha-conf.xml" > logdir="$( xmlstarlet sel -t -v 'yazgfs/config/logdir' $kohaconfig )" >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16357
:
71752
|
71753
|
71871
|
72290
|
72296
|
73404
|
77529
|
77530
|
77531
|
77532
|
77533
|
106141
|
106313
|
106319
|
106320
|
109053
|
109054
|
109055
|
109056
|
109060
|
109067
|
109068
|
109133
|
109215
|
110107
|
110108
|
110109
|
110249
|
110250
|
110251
|
110252
| 110253 |
110254