Bugzilla – Attachment 102971 Details for
Bug 25032
Generic unhandled exception handling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25032: Add 'api' target to log4perl.conf
Bug-25032-Add-api-target-to-log4perlconf.patch (text/plain), 2.62 KB, created by
Jonathan Druart
on 2020-04-15 09:17:01 UTC
(
hide
)
Description:
Bug 25032: Add 'api' target to log4perl.conf
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-04-15 09:17:01 UTC
Size:
2.62 KB
patch
obsolete
>From f5124797ad71f5e989687bb6c8b36d5ad364ef4e Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 31 Mar 2020 18:42:25 -0300 >Subject: [PATCH] Bug 25032: Add 'api' target to log4perl.conf > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > debian/koha-common.postinst | 12 ++++++++++++ > debian/templates/log4perl-site.conf.in | 8 ++++++++ > etc/log4perl.conf | 8 ++++++++ > 3 files changed, 28 insertions(+) > >diff --git a/debian/koha-common.postinst b/debian/koha-common.postinst >index bdc55016e6..9d994fed3c 100644 >--- a/debian/koha-common.postinst >+++ b/debian/koha-common.postinst >@@ -156,6 +156,18 @@ log4perl.appender.Z3950.layout=PatternLayout > log4perl.appender.Z3950.layout.ConversionPattern=[%d] [%p] %m %l %n > log4perl.appender.Z3950.utf8=1 > >+EOF >+ fi >+ >+ if [ !log4perl_component $log4perl_config "api" ]; then >+ cat <<EOF >> $log4perl_config >+log4perl.logger.api = WARN, API >+log4perl.appender.API=Log::Log4perl::Appender::File >+log4perl.appender.API.filename=/var/log/koha/$site/api-error.log >+log4perl.appender.API.mode=append >+log4perl.appender.API.layout=PatternLayout >+log4perl.appender.API.layout.ConversionPattern=[%d] [%p] %m %l %n >+ > EOF > fi > done >diff --git a/debian/templates/log4perl-site.conf.in b/debian/templates/log4perl-site.conf.in >index dbf544466a..c7de07895b 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.api = WARN, API >+log4perl.appender.API=Log::Log4perl::Appender::File >+log4perl.appender.API.filename=__LOG_DIR__/api-error.log >+log4perl.appender.API.mode=append >+log4perl.appender.API.layout=PatternLayout >+log4perl.appender.API.layout.ConversionPattern=[%d] [%p] %m %l %n >+log4perl.appender.API.utf8=1 >diff --git a/etc/log4perl.conf b/etc/log4perl.conf >index dbf544466a..c7de07895b 100644 >--- a/etc/log4perl.conf >+++ b/etc/log4perl.conf >@@ -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.api = WARN, API >+log4perl.appender.API=Log::Log4perl::Appender::File >+log4perl.appender.API.filename=__LOG_DIR__/api-error.log >+log4perl.appender.API.mode=append >+log4perl.appender.API.layout=PatternLayout >+log4perl.appender.API.layout.ConversionPattern=[%d] [%p] %m %l %n >+log4perl.appender.API.utf8=1 >-- >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 25032
:
102160
|
102161
|
102305
|
102306
|
102307
|
102523
|
102524
|
102525
|
102947
|
102971
|
102972
|
102973
|
102974
|
102975
|
103752
|
103753
|
103754
|
103755
|
103756