]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 20 Oct 2020 14:27:01 +0000 (14:27 +0000)
commit9ee5da39a274f8f2ef7428cd72a2b029352dd2c6
treeb5f5cb06b84fa92a0f0f65aa60fea835a937b082
parent1610c5101475274b6a9866fdc5c8211e7268b8f1
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>
(cherry picked from commit 0bc0aa708c5903c8ae2b7c45643600d0fc59ae03)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
debian/templates/plack.psgi