Bugzilla – Attachment 65226 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 Koha::Logger based logging for SIP2 - Revert testing changes
Bug-15253---Add-KohaLogger-based-logging-for-SIP2-.patch (text/plain), 1.94 KB, created by
Kyle M Hall (khall)
on 2017-07-25 14:01:45 UTC
(
hide
)
Description:
Bug 15253 - Add Koha::Logger based logging for SIP2 - Revert testing changes
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2017-07-25 14:01:45 UTC
Size:
1.94 KB
patch
obsolete
>From d6fdcd73d96716a61c095e43f3014b36bdce0d01 Mon Sep 17 00:00:00 2001 >From: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi> >Date: Wed, 4 Jan 2017 10:48:42 +0200 >Subject: [PATCH] Bug 15253 - Add Koha::Logger based logging for SIP2 - Revert > testing changes > >Remove changes intended to help test the feature. > >-Put Koha::Logger back to silently failing mode >-Revert to log using syslog > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > Koha/Logger.pm | 1 - > etc/log4perl.conf | 11 +++++------ > 2 files changed, 5 insertions(+), 7 deletions(-) > >diff --git a/Koha/Logger.pm b/Koha/Logger.pm >index 8c64619..ed85c99 100644 >--- a/Koha/Logger.pm >+++ b/Koha/Logger.pm >@@ -118,7 +118,6 @@ sub DESTROY { } > > sub _init { > my $rv; >- $ENV{"LOG4PERL_CONF"} = C4::Context->config("log4perl_conf"); #Supercharge Koha::Log to skip unnecessary configuration file checking on each log attempt > if ( exists $ENV{"LOG4PERL_CONF"} and $ENV{'LOG4PERL_CONF'} and -s $ENV{"LOG4PERL_CONF"} ) { > > # Check for web server level configuration first >diff --git a/etc/log4perl.conf b/etc/log4perl.conf >index ab1abf6..12d44be 100644 >--- a/etc/log4perl.conf >+++ b/etc/log4perl.conf >@@ -19,11 +19,10 @@ log4perl.appender.OPAC.layout=PatternLayout > log4perl.appender.OPAC.layout.ConversionPattern=[%d] [%p] %m %l %n > > log4perl.logger.sip = DEBUG, SIP >-log4perl.appender.SIP=Log::Log4perl::Appender::File >-log4perl.appender.SIP.filename=__LOG_DIR__/sip2.log >-log4perl.appender.SIP.mode=append >-log4perl.appender.SIP.create_at_logtime=true >-log4perl.appender.SIP.syswrite=true >-log4perl.appender.SIP.recreate=true >+log4perl.logger.sip = DEBUG, SIP >+log4perl.appender.SIP = Log::Dispatch::Syslog >+log4perl.appender.SIP.min_level = debug >+log4perl.appender.SIP.ident = koha_sip >+log4perl.appender.SIP.facility = local6 > log4perl.appender.SIP.layout=PatternLayout > log4perl.appender.SIP.layout.ConversionPattern=[%d] [%p] %X{accountid}@%X{peeraddr}: %m %l %n >-- >2.1.4
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