diff options
Diffstat (limited to 'app.psgi')
-rw-r--r-- | app.psgi | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; +}; |