[Jifty-commit] r6310 - in jifty/trunk: lib/Jifty/Plugin
Jifty commits
jifty-commit at lists.jifty.org
Thu Feb 5 14:02:03 EST 2009
Author: alexmv
Date: Thu Feb 5 14:02:02 2009
New Revision: 6310
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/TestServerWarnings.pm
Log:
r41871 at kohr-ah: chmrr | 2009-02-05 13:36:27 -0500
* Don't error if the 'Screen' appender doesn't exist
Modified: jifty/trunk/lib/Jifty/Plugin/TestServerWarnings.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/TestServerWarnings.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/TestServerWarnings.pm Thu Feb 5 14:02:02 2009
@@ -66,11 +66,10 @@
my $self = shift;
return if $self->{init}++;
- my $root = Log::Log4perl->get_logger("");
- $root->remove_appender("Screen") if $self->clear_screen;
+ Log::Log4perl->eradicate_appender("Screen") if $self->clear_screen;
my $a = Jifty::Plugin::TestServerWarnings::Appender->new(name => "TestServerAppender");
- $root->add_appender($a);
+ Log::Log4perl->get_logger("")->add_appender($a);
}
=head3 add_warnings WARN, WARN, ..
More information about the Jifty-commit
mailing list