Merge live hack - Extra debugging on connection failures
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 1 Aug 2011 23:28:06 +0000 (23:28 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 1 Aug 2011 23:28:06 +0000 (23:28 +0000)
includes/db/LoadBalancer.php

index 069b8e1..ab3174f 100644 (file)
@@ -699,7 +699,7 @@ class LoadBalancer {
 
                if ( !is_object( $conn ) ) {
                        // No last connection, probably due to all servers being too busy
-                       wfLogDBError( "LB failure with no last connection\n" );
+                       wfLogDBError( "LB failure with no last connection. Connection error: {$this->mLastError}\n" );
                        $conn = new Database;
                        // If all servers were busy, mLastError will contain something sensible
                        throw new DBConnectionError( $conn, $this->mLastError );