[Koha-bugs] [Bug 22678] Set 'Koha::Logger' as the default mojo logger for the REST API
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Aug 26 08:23:07 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22678
--- Comment #3 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Testing this small piece of code:
diff --git a/Koha/REST/V1/Patrons.pm b/Koha/REST/V1/Patrons.pm
index 576e4f8f2c..fad1359fc3 100644
--- a/Koha/REST/V1/Patrons.pm
+++ b/Koha/REST/V1/Patrons.pm
@@ -44,6 +44,7 @@ Controller function that handles listing Koha::Patron objects
sub list {
my $c = shift->openapi->valid_input or return;
+$c->app->log->debug('L47');
return try {
my $query = {};
Now hit /api/v1/patrons and see what happens:
The application raised the following error:
Can't call method "error" on an undefined value at
/usr/share/perl5/Mojolicious/Plugin/DefaultHelpers.pm line 94.
and the StackTrace middleware couldn't catch its stack trace, possibly because
your application overrides $SIG{__DIE__} by itself, preventing the middleware
from working correctly. Remove the offending code or module that does it: known
examples are CGI::Carp and Carp::Always.
Easy peasy lemon squeezy
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list