From 9b4e67b828c929d3daa1dbab9e6cc92263d66868 Mon Sep 17 00:00:00 2001 From: Patrick Donelan Date: Tue, 13 Apr 2010 21:17:15 -0400 Subject: [PATCH] Removed showDebug() in favour of new logger panel --- lib/WebGUI.pm | 6 ------ lib/WebGUI/Session/ErrorHandler.pm | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/WebGUI.pm b/lib/WebGUI.pm index 33733f932..6270c0607 100644 --- a/lib/WebGUI.pm +++ b/lib/WebGUI.pm @@ -212,9 +212,6 @@ sub handle { # "chunked" or "empty" means it took care of its own output needs if (defined $output && ( $output eq "chunked" || $output eq "empty" )) { #warn "chunked and empty no longer stream, use session->response->stream() instead"; - if ($session->errorHandler->canShowDebug()) { - $session->output->print($session->errorHandler->showDebug(),1); - } return; } # non-empty output should be used as the response body @@ -224,9 +221,6 @@ sub handle { # Use contentHandler's return value as the output $session->output->print($output); - if ($session->errorHandler->canShowDebug()) { - $session->output->print($session->errorHandler->showDebug(),1); - } return; } # Keep processing for success codes diff --git a/lib/WebGUI/Session/ErrorHandler.pm b/lib/WebGUI/Session/ErrorHandler.pm index 682f7072f..e6f5352de 100644 --- a/lib/WebGUI/Session/ErrorHandler.pm +++ b/lib/WebGUI/Session/ErrorHandler.pm @@ -447,6 +447,8 @@ sub session { Creates an HTML formatted string of all internally stored debug information, warns, errors, sql queries and form data. +THIS METHOD IS DEPRECATED (See Plack::Middleware::Debug::WgLogger) + =cut sub showDebug {