diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-05-21 20:34:59 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-06-28 22:41:57 +0200 |
commit | 09c70a582658841bc9dfa758a20bbf6fb95383a7 (patch) | |
tree | 03cb6534af1fc73bc83158f5a2878094271c0f16 /Bugzilla/Quantum.pm | |
parent | 7f3e24134e85964e4e0177116364995ddf724601 (diff) | |
download | bugzilla-09c70a582658841bc9dfa758a20bbf6fb95383a7.tar.gz bugzilla-09c70a582658841bc9dfa758a20bbf6fb95383a7.tar.xz |
fix logging and another bug
Diffstat (limited to 'Bugzilla/Quantum.pm')
-rw-r--r-- | Bugzilla/Quantum.pm | 9 |
1 files changed, 7 insertions, 2 deletions
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); |