Bugzilla – Attachment 140693 Details for
Bug 31468
Koha::Logger should prefix interface with 'plack'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31468: Change interface in Koha::Logger
Bug-31468-Change-interface-in-KohaLogger.patch (text/plain), 1.13 KB, created by
Marcel de Rooy
on 2022-09-16 08:04:10 UTC
(
hide
)
Description:
Bug 31468: Change interface in Koha::Logger
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-09-16 08:04:10 UTC
Size:
1.13 KB
patch
obsolete
>From 70524a234665c3de0f533940f03b386c59c8814b Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 26 Aug 2022 09:28:14 +0000 >Subject: [PATCH] Bug 31468: Change interface in Koha::Logger >Content-Type: text/plain; charset=utf-8 > >Test plan: >Add a line in mainpage.pl: > require Koha::Logger; Koha::Logger->get->warn("intranet L51"); >Restart. Hit intranet mainpage. Verify that line is in plack=intranet. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Retested with L49 now ;) >--- > Koha/Logger.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Logger.pm b/Koha/Logger.pm >index f91e5a2277..bd1094c24b 100644 >--- a/Koha/Logger.pm >+++ b/Koha/Logger.pm >@@ -57,7 +57,7 @@ sub get { > my ( $class, $params ) = @_; > my $interface = $params ? ( $params->{interface} || C4::Context->interface ) : C4::Context->interface; > my $category = $params ? ( $params->{category} || caller ) : caller; >- my $l4pcat = $interface . '.' . $category; >+ my $l4pcat = ( C4::Context->psgi_env ? 'plack-' : q{} ) . $interface . '.' . $category; > > my $init = _init(); > my $self = {}; >-- >2.30.2
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 31468
:
139821
|
139822
|
140693
|
140697