Bugzilla – Attachment 103462 Details for
Bug 15253
Add Koha::Logger based logging for SIP2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15253: Add log4perl conf updates for Debian packages
Bug-15253-Add-log4perl-conf-updates-for-Debian-pac.patch (text/plain), 2.80 KB, created by
Jonathan Druart
on 2020-04-22 11:17:02 UTC
(
hide
)
Description:
Bug 15253: Add log4perl conf updates for Debian packages
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-04-22 11:17:02 UTC
Size:
2.80 KB
patch
obsolete
>From 0996d02daa02d633439c1721228bcd3db929a271 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 1 Apr 2020 08:14:48 -0400 >Subject: [PATCH] Bug 15253: Add log4perl conf updates for Debian packages > >* Add log4perl conf updates for Debian packages >* Rename sip2.log to sip.log >--- > debian/koha-common.postinst | 16 ++++++++++++++++ > debian/templates/log4perl-site.conf.in | 8 ++++++++ > etc/log4perl.conf | 2 +- > 3 files changed, 25 insertions(+), 1 deletion(-) > >diff --git a/debian/koha-common.postinst b/debian/koha-common.postinst >index bdc55016e6..c3548881a9 100644 >--- a/debian/koha-common.postinst >+++ b/debian/koha-common.postinst >@@ -160,6 +160,22 @@ EOF > fi > done > >+for site in $(koha-list); do >+ log4perl_config="/etc/koha/sites/$site/log4perl.conf" >+ if [ !log4perl_component $log4perl_config "sip" ]; then >+ cat <<EOF >> $log4perl_config >+log4perl.logger.sip = DEBUG, SIP >+log4perl.appender.SIP=Log::Log4perl::Appender::File >+log4perl.appender.SIP.filename=/var/log/koha/$site/sip.log >+log4perl.appender.SIP.mode=append >+log4perl.appender.SIP.layout=PatternLayout >+log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %X{accountid}@%X{peeraddr}: %m %l %n >+log4perl.appender.SIP.utf8=1 >+ >+EOF >+ fi >+done >+ > # Bug 14106 - fix the modulePath of existing koha instances so that it'll > # continue to work. This will only patch the files if the exact original string > # that we're fixing them from is there, so we just run it every time. Maybe >diff --git a/debian/templates/log4perl-site.conf.in b/debian/templates/log4perl-site.conf.in >index dbf544466a..a385cb756d 100644 >--- a/debian/templates/log4perl-site.conf.in >+++ b/debian/templates/log4perl-site.conf.in >@@ -21,3 +21,11 @@ log4perl.appender.Z3950.mode=append > log4perl.appender.Z3950.layout=PatternLayout > log4perl.appender.Z3950.layout.ConversionPattern=[%d] [%p] %m %l %n > log4perl.appender.Z3950.utf8=1 >+ >+log4perl.logger.sip = DEBUG, SIP >+log4perl.appender.SIP=Log::Log4perl::Appender::File >+log4perl.appender.SIP.filename=__LOG_DIR__/sip.log >+log4perl.appender.SIP.mode=append >+log4perl.appender.SIP.layout=PatternLayout >+log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %X{accountid}@%X{peeraddr}: %m %l %n >+log4perl.appender.SIP.utf8=1 >diff --git a/etc/log4perl.conf b/etc/log4perl.conf >index 4718184008..a385cb756d 100644 >--- a/etc/log4perl.conf >+++ b/etc/log4perl.conf >@@ -24,7 +24,7 @@ log4perl.appender.Z3950.utf8=1 > > log4perl.logger.sip = DEBUG, SIP > log4perl.appender.SIP=Log::Log4perl::Appender::File >-log4perl.appender.SIP.filename=__LOG_DIR__/sip2.log >+log4perl.appender.SIP.filename=__LOG_DIR__/sip.log > log4perl.appender.SIP.mode=append > log4perl.appender.SIP.layout=PatternLayout > log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %X{accountid}@%X{peeraddr}: %m %l %n >-- >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 15253
:
45824
|
45825
|
45826
|
58570
|
58571
|
58572
|
58573
|
58582
|
60872
|
65219
|
65220
|
65221
|
65222
|
65223
|
65224
|
65225
|
65226
|
65227
|
65228
|
71702
|
71703
|
74947
|
86573
|
86574
|
87993
|
88383
|
100062
|
100063
|
100379
|
102216
|
102217
|
102218
|
102219
|
103456
|
103457
|
103458
|
103459
|
103462
|
103499
|
103500
|
103501
|
103502
|
103503
|
103599
|
103915
|
103916
|
103917
|
103918
|
103919
|
103920
|
103921
|
104016
|
104667
|
104668
|
104669
|
104670
|
104671
|
104672
|
104673
|
104674
|
111169