[Koha-bugs] [Bug 18205] API interface to Koha::Logger
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Aug 26 02:04:09 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18205
--- Comment #32 from David Cook <dcook at prosentient.com.au> ---
Created attachment 139811
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=139811&action=edit
Bug 18205: [ALTERNATE] Use Koha::Logger for Mojolicious API logger
This patch adds Koha::Logger as the Mojolicious logging object
for the API Mojolicious app.
Test plan:
0. Apply the patch and koha-plack --restart kohadev
1. Add $c->app->log->debug('DEBUG') and
$c->app->log->warn('WARN') to a API controller like
Koha::REST::V1::Libraries
2. koha-plack --restart kohadev
3. Go to the API route tied to that API controller method
4. Look at /var/log/koha/kohadev/api-error.log
5. Note that 'WARN' appears but 'DEBUG' does not
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list