From 09c70a582658841bc9dfa758a20bbf6fb95383a7 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 21 May 2018 14:34:59 -0400 Subject: fix logging and another bug --- Bugzilla/Quantum.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Quantum.pm b/Bugzilla/Quantum.pm index 44b9b6e5b..df06da697 100644 --- a/Bugzilla/Quantum.pm +++ b/Bugzilla/Quantum.pm @@ -24,6 +24,8 @@ use Bugzilla::Util (); use Bugzilla::RNG (); use Cwd qw(realpath); +use MojoX::Log::Log4perl::Tiny; + has 'static' => sub { Bugzilla::Quantum::Static->new }; sub startup { @@ -35,8 +37,11 @@ sub startup { $self->secrets([Bugzilla->localconfig->{side_wide_secret}]); $self->plugin('Bugzilla::Quantum::Plugin::Glue'); - - $self->log(Log::Log4perl->get_logger(__PACKAGE__)); + $self->log( + MojoX::Log::Log4perl::Tiny->new( + logger => Log::Log4perl->get_logger(__PACKAGE__) + ) + ); my $r = $self->routes; Bugzilla::Quantum::CGI->load_all($r); -- cgit v1.2.3-24-g4f1b