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>
21.05.x
Martin Renvoize 1 year ago
committed by Jonathan Druart
parent
commit
e07c9e9f06
  1. 2
      debian/koha-common.postinst
  2. 2
      debian/koha-core.postinst
  3. 2
      debian/templates/log4perl-site.conf.in
  4. 3
      etc/log4perl.conf

2
debian/koha-common.postinst

@ -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

2
debian/koha-core.postinst

@ -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

2
debian/templates/log4perl-site.conf.in

@ -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

3
etc/log4perl.conf

@ -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