Fix how logging gets intercepted. It used to be on by default, now it must be turned on.
This commit is contained in:
parent
78776f2f33
commit
06f52bae9a
6 changed files with 29 additions and 7 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue