Browse Source

Bug 14300: Add %P to SIP LogPattern

This patch adds `%P` to the SIP log4perl configuration so that PID is
recorded against log lines.

This allows transactions to be more easily tied together under one
SIPServer, thus making it easier to pick out a whole transaction from
start to finish.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
master
4 changed files with 4 additions and 5 deletions
  1. +1
    -1
      debian/koha-common.postinst
  2. +1
    -1
      debian/koha-core.postinst
  3. +1
    -1
      debian/templates/log4perl-site.conf.in
  4. +1
    -2
      etc/log4perl.conf

+ 1
- 1
debian/koha-common.postinst View File

@@ -182,7 +182,7 @@ 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] %m %l %n
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%P] [%p] %m %l %n
log4perl.appender.SIP.utf8=1

EOF


+ 1
- 1
debian/koha-core.postinst View File

@@ -182,7 +182,7 @@ 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] %m %l %n
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%P] [%p] %m %l %n
log4perl.appender.SIP.utf8=1

EOF


+ 1
- 1
debian/templates/log4perl-site.conf.in View File

@@ -35,7 +35,7 @@ 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] %m %l %n
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%P] [%p] %m %l %n
log4perl.appender.SIP.utf8=1




+ 1
- 2
etc/log4perl.conf View File

@@ -35,10 +35,9 @@ 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] %m %l %n
log4perl.appender.SIP.layout.ConversionPattern=[%d] [%P] [%p] %m %l %n
log4perl.appender.SIP.utf8=1


log4perl.logger.plack-opac = WARN, PLACKOPAC
log4perl.appender.PLACKOPAC=Log::Log4perl::Appender::File
log4perl.appender.PLACKOPAC.filename=__LOG_DIR__/plack-opac-error.log


Loading…
Cancel
Save