Bugzilla – Attachment 139944 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), 857 bytes, created by
Marcel de Rooy
on 2022-08-29 12:52:04 UTC
(
hide
)
Description:
Bug 22678: (follow-up) Array ref expected in context key
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-08-29 12:52:04 UTC
Size:
857 bytes
patch
obsolete
>From 6d16a1c9e56bd9bc9df2ff118e83c7f8f4e2ca03 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 >Content-Type: text/plain; charset=utf-8 > >--- > Koha/Logger.pm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/Koha/Logger.pm b/Koha/Logger.pm >index 80ed48f56f..8912360bb7 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.20.1
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