[Jifty-commit] r2775 - in jifty/trunk: lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Feb 9 16:56:07 EST 2007


Author: falcone
Date: Fri Feb  9 16:56:06 2007
New Revision: 2775

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Test.pm

Log:
 r16693 at ketch:  falcone | 2007-02-09 16:54:37 -0500
 * stop hiding messages/warns from the database during tests
 * default to only showing WARN and higher when running tests 
   (rather than our more normal INFO)


Modified: jifty/trunk/lib/Jifty/Test.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Test.pm	(original)
+++ jifty/trunk/lib/Jifty/Test.pm	Fri Feb  9 16:56:06 2007
@@ -142,13 +142,11 @@
 
     Jifty->new( no_handle => 1 );
 
-    Log::Log4perl->get_logger("SchemaTool")->less_logging(3);
     my $schema = Jifty::Script::Schema->new;
     $schema->{drop_database} =
       $schema->{create_database} =
         $schema->{create_all_tables} = 1;
     $schema->run;
-    Log::Log4perl->get_logger("SchemaTool")->more_logging(3);
 
     Jifty->new();
     $class->setup_mailbox;
@@ -191,6 +189,7 @@
             },
             Mailer => 'Jifty::Test',
             MailerArgs => [],
+            LogLevel => 'WARN'
         }
     };
 }
@@ -221,7 +220,6 @@
         unshift @Jifty::Server::ISA, 'Test::HTTP::Server::Simple';
     }
 
-    Log::Log4perl->get_logger("Jifty::Server")->less_logging(3);
     my $server = Jifty::Server->new;
 
     return $server;
@@ -405,11 +403,9 @@
         # Remove testing db
         if (Jifty->handle) {
             Jifty->handle->disconnect();
-            Log::Log4perl->get_logger("SchemaTool")->less_logging(3);
             my $schema = Jifty::Script::Schema->new;
             $schema->{drop_database} = 1;
             $schema->run;
-            Log::Log4perl->get_logger("SchemaTool")->more_logging(3);
         }
 
         # Unlink test files


More information about the Jifty-commit mailing list