Bugzilla – Attachment 142320 Details for
Bug 22678
Set 'Koha::Logger' as the default mojo logger for the REST API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22678: (follow-up) Array ref expected in context key
Bug-22678-follow-up-Array-ref-expected-in-context-.patch (text/plain), 872 bytes, created by
Kyle M Hall (khall)
on 2022-10-21 10:38:19 UTC
(
hide
)
Description:
Bug 22678: (follow-up) Array ref expected in context key
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2022-10-21 10:38:19 UTC
Size:
872 bytes
patch
obsolete
>From f322b4696aa488e13685f02a53d64c6d4880e326 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 29 Aug 2022 12:51:05 +0000 >Subject: [PATCH] Bug 22678: (follow-up) Array ref expected in context key > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > Koha/Logger.pm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/Koha/Logger.pm b/Koha/Logger.pm >index e364c9cdb9..4d2630ff6a 100644 >--- a/Koha/Logger.pm >+++ b/Koha/Logger.pm >@@ -194,10 +194,13 @@ sub debug_to_screen { > Mojolicous 8.23 added a "context" method, which Mojolicious will die > on if it's missing from the logger. > >+Note: We are just preventing a crash here not returning a new context logger. >+ > =cut > > sub context { >- my $self = shift; >+ my ( $self, @context ) = @_; >+ $self->{context} = \@context; > return $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 22678
:
139813
|
139816
|
139940
|
139942
|
139943
|
139944
|
142318
|
142319
| 142320