aboutsummaryrefslogtreecommitdiffstats
path: root/app.psgi
diff options
context:
space:
mode:
Diffstat (limited to 'app.psgi')
-rw-r--r--app.psgi9
1 files changed, 8 insertions, 1 deletions
diff --git a/app.psgi b/app.psgi
index fcc672647..f19069042 100644
--- a/app.psgi
+++ b/app.psgi
@@ -2,7 +2,14 @@ use strict;
use warnings;
use FixMyStreet::App;
+use Plack::Builder;
+use Catalyst::Utils;
my $app = FixMyStreet::App->apply_default_middlewares(FixMyStreet::App->psgi_app);
-$app;
+builder {
+ enable 'Debug', panels => [ qw(Parameters Response DBIC::QueryLog CatalystLog Timer Memory) ]
+ if Catalyst::Utils::env_value( 'FixMyStreet::App', 'DEBUG' );
+
+ $app;
+};