Permalink
Browse files

Added Debug Middleware

  • Loading branch information...
1 parent 77c4342 commit 5778e0450a76d356a38148d5f1f3f3171311b7d4 @Getty Getty committed Sep 7, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 ddgc_web.psgi
View
@@ -2,7 +2,11 @@ use strict;
use warnings;
use DDGC::Web;
+use Plack::Builder;
my $app = DDGC::Web->apply_default_middlewares(DDGC::Web->psgi_app);
-$app;
+builder {
+ enable 'Debug', panels => [ qw(CatalystLog DBITrace Memory Timer Parameters Session Response) ] if DDGC::Web->debug;
+ $app;
+};

0 comments on commit 5778e04

Please sign in to comment.