]> git.koha-community.org Git - koha.git/commit
Bug 25464: Add ability to specify client IP and SIP account used in SIP2 logging
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 12 May 2020 11:11:12 +0000 (07:11 -0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Jul 2021 10:46:32 +0000 (12:46 +0200)
commit006c70f4f2112f7057e5c6228bfd4dd6684cf976
tree14b5c00bed712b5c256ffb6753e396c3c79f698e
parentcb2eae80d996f007566e79baa46e057a743029aa
Bug 25464: Add ability to specify client IP and SIP account used in SIP2 logging

Bug 15253 originally had the ability to specify the incoming IP address used for
a given log statement via SIP, as well as the SIP2 account that was in use at the time.
This data is very helpful for debugging purposes, and should be brought back.

Test Plan:
1) Apply this patch
2) Update you SIP ConversionPattern to "[%d] [%p] %X{accountid}@%X{peeraddr}: %m %l %n"
3) Restart SIP
4) Use the SIP cli tester to make some SIP requests
5) View the SIP2 log, note the account id and client ip address show in the log!

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/SIP/SIPServer.pm
Koha/Logger.pm
debian/koha-common.postinst
debian/templates/log4perl-site.conf.in
etc/log4perl.conf
t/Logger.t