summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Quantum/Plugin/Glue.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Quantum/Plugin/Glue.pm')
-rw-r--r--Bugzilla/Quantum/Plugin/Glue.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Quantum/Plugin/Glue.pm b/Bugzilla/Quantum/Plugin/Glue.pm
index a38a12657..e9d0056d0 100644
--- a/Bugzilla/Quantum/Plugin/Glue.pm
+++ b/Bugzilla/Quantum/Plugin/Glue.pm
@@ -14,6 +14,7 @@ use Bugzilla::Constants;
use Bugzilla::Logging;
use Bugzilla::RNG ();
use JSON::MaybeXS qw(decode_json);
+use Scope::Guard;
sub register {
my ( $self, $app, $conf ) = @_;
@@ -42,6 +43,7 @@ sub register {
}
}
Log::Log4perl::MDC->put( request_id => $c->req->request_id );
+ $c->stash->{cleanup_guard} = Scope::Guard->new( \&Bugzilla::cleanup );
}
);
@@ -72,7 +74,6 @@ sub register {
or die $template->error;
}
);
- $app->renderer->default_handler('bugzilla');
$app->log( MojoX::Log::Log4perl::Tiny->new( logger => Log::Log4perl->get_logger( ref $app ) ) );
}