summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla.pm2
-rw-r--r--Bugzilla/Quantum.pm9
-rwxr-xr-xMakefile.PL1
3 files changed, 9 insertions, 3 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index fc17575b8..86d109350 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -194,7 +194,7 @@ sub init_page {
#####################################################################
sub template {
- request_cache->{template} // Bugzilla::Template->create();
+ request_cache->{template} //= Bugzilla::Template->create();
request_cache->{template}->{_is_main} = 1;
if (Bugzilla->cgi->server_software eq 'Bugzilla::Quantum::CGI') {
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);
diff --git a/Makefile.PL b/Makefile.PL
index f173d68fe..8a3c0c6ba 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -69,6 +69,7 @@ my %requires = (
'Module::Metadata' => '1.000033',
'Module::Runtime' => '0.014',
'Mojolicious' => '7.71',
+ 'MojoX::Log::Log4perl::Tiny' => '0.01',
'Moo' => '2.002004',
'MooX::StrictConstructor' => '0.008',
'Mozilla::CA' => '20160104',