simplify logging and move inline debug into plack middleware
This commit is contained in:
parent
373be0881d
commit
0c08e9c235
4 changed files with 190 additions and 169 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue