Fix how logging gets intercepted. It used to be on by default, now it must be turned on.

This commit is contained in:
Colin Kuskie 2008-02-29 22:09:32 +00:00
parent 78776f2f33
commit 06f52bae9a
6 changed files with 29 additions and 7 deletions

View file

@ -36,6 +36,8 @@ my ($eh) = $session->quick('errorHandler');
#
####################################################
WebGUI::Test->interceptLogging();
my $accumulated_warn = "";
$eh->warn("This is a warning");
is($WebGUI::Test::logger_warns, "This is a warning", "warn: Log4perl called");