From 255ec4234423b5d9cd8430aa00c234f8d0bcf964 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Fri, 9 Jun 2006 17:24:06 +0000 Subject: [PATCH] switcharoo on debug and info --- lib/WebGUI/Session/ErrorHandler.pm | 10 +++++----- lib/WebGUI/Workflow/Instance.pm | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/WebGUI/Session/ErrorHandler.pm b/lib/WebGUI/Session/ErrorHandler.pm index c2b87041b..f84d16cdf 100644 --- a/lib/WebGUI/Session/ErrorHandler.pm +++ b/lib/WebGUI/Session/ErrorHandler.pm @@ -310,7 +310,7 @@ sub query { else { $plac = ''; } - $self->info("query ".$self->{_queryCount}.': '.$query.$plac); + $self->debug("query ".$self->{_queryCount}.': '.$query.$plac); } @@ -364,9 +364,9 @@ sub showDebug { $text = $self->{_debug_warn}; $text =~ s/\n/\
\n/g; $output .= '
'.$text."
\n"; - $text = $self->{_debug_debug}; + $text = $self->{_debug_info}; $text =~ s/\n/\
\n/g; - $output .= '
'.$text."
\n"; + $output .= '
'.$text."
\n"; my $form = $self->session->form->paramsHashRef(); foreach my $key (keys %{$form}) { if ($key eq "password" || $key eq "identifier") { @@ -380,9 +380,9 @@ sub showDebug { $text =~ s/\n/\
\n/g; $text =~ s/ /    /g; $output .= '
'.$text."
\n"; - $text = $self->{_debug_info}; + $text = $self->{_debug_debug}; $text =~ s/\n/\
\n/g; - $output .= '
'.$text."
\n"; + $output .= '
'.$text."
\n"; return $output; } diff --git a/lib/WebGUI/Workflow/Instance.pm b/lib/WebGUI/Workflow/Instance.pm index 374d9bf58..90a4ac40c 100644 --- a/lib/WebGUI/Workflow/Instance.pm +++ b/lib/WebGUI/Workflow/Instance.pm @@ -257,7 +257,7 @@ sub run { $self->delete; return "done"; } - $self->session->errorHandler->debug("Running workflow activity ".$activity->getId.", which is a ".(ref $activity).", for instance ".$self->getId."."); + $self->session->errorHandler->info("Running workflow activity ".$activity->getId.", which is a ".(ref $activity).", for instance ".$self->getId."."); my $class = $self->get("className"); my $method = $self->get("methodName"); my $params = $self->get("parameters");