]> git.koha-community.org Git - koha.git/commit
Bug 16357: (QA follow-up) Only initialize Log4perl module
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Tue, 25 Aug 2020 12:10:20 +0000 (12:10 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 28 Sep 2020 14:09:10 +0000 (16:09 +0200)
commit0bc0aa708c5903c8ae2b7c45643600d0fc59ae03
tree8bb9d22a01ae046165ec2af4dc89187af8058a7c
parent79b2b85f82875664e47cfff1cf1922605f94b03c
Bug 16357: (QA follow-up) Only initialize Log4perl module

Koha::Logger->get was setting up some extra variables
which are not used nor needed for the Plack::Middleware::Log4perl
middleware to work. According to documentation at
https://metacpan.org/pod/Plack::Middleware::Log4perl#SYNOPSIS
only running Log::Log4perl::init, enabling Log4Perl middleware and
setting up the logging category is enough. Koha::Logger->_init runs the
Log::Log4perl::init and enabling and setting category is handled
directly in plack.psgi.

Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
debian/templates/plack.psgi