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>
This commit is contained in:
parent
79b2b85f82
commit
0bc0aa708c
|
|
@ -66,7 +66,7 @@ my $apiv1 = builder {
|
|||
$server->to_psgi_app;
|
||||
};
|
||||
|
||||
Koha::Logger->get;
|
||||
Koha::Logger->_init;
|
||||
|
||||
builder {
|
||||
enable "ReverseProxy";
|
||||
|
|
|
|||
Loading…
Reference in New Issue