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

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sat Mar 17 03:03:08 EDT 2007


Author: jesse
Date: Sat Mar 17 03:03:08 2007
New Revision: 3009

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

Log:
 r53572 at pinglin:  jesse | 2007-03-17 03:02:41 -0400
 * more quieting down of "couldn't drop that database that shouldn't have existed in the first place"


Modified: jifty/trunk/lib/Jifty/Logger.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Logger.pm	(original)
+++ jifty/trunk/lib/Jifty/Logger.pm	Sat Mar 17 03:03:08 2007
@@ -186,18 +186,19 @@
     my %pg_notices = ('DEBUG\d+' => 'debug',
                       'INFO'     => 'info',
                       'NOTICE'   => 'info',
+                      '.*ERROR.*database .* does not exist' => 'info',
+                      '.*couldn.t execute the query .DROP DATABASE.' => 'info',
                       'WARNING'  => 'warn',
                       'DBD::Pg.+ERROR'    => 'error',
                       'LOG'      => 'warn',
                       'FATAL'    => 'fatal',
                       'PANIC'    => 'fatal' );
-
+    
     foreach my $notice (keys %pg_notices) {
-        if ($warnings =~ /^$notice:/) {
+        if ($warnings =~ /^$notice/) {
             return $pg_notices{$notice};
-        }
+        } 
     }
-
     return 'warn';
 }
 


More information about the Jifty-commit mailing list