simplify logging and move inline debug into plack middleware

This commit is contained in:
Graham Knop 2010-04-13 19:19:36 -05:00
parent 373be0881d
commit 0c08e9c235
4 changed files with 190 additions and 169 deletions

View file

@ -70,7 +70,18 @@ sub call {
if ($debug) {
$app = Plack::Middleware::StackTrace->wrap($app);
$app = Plack::Middleware::Debug->wrap( $app,
panels => [qw(Environment Response Timer Memory Session DBITrace PerlConfig Response WgLogger)] );
panels => [
'Environment',
'Response',
'Timer',
'Memory',
'Session',
'PerlConfig',
[ 'MySQLTrace', skip_packages => qr/\AWebGUI::SQL(?:\z|::)/ ],
'Response',
'Logger',
],
);
}
# Turn exceptions into HTTP errors