From: Chad Horohoe Date: Mon, 1 Aug 2011 23:28:06 +0000 (+0000) Subject: Merge live hack - Extra debugging on connection failures X-Git-Tag: 1.31.0-rc.0~28507 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=498213cc9f8c787271736d28c8556ee6616605ac;p=lhc%2Fweb%2Fwiklou.git Merge live hack - Extra debugging on connection failures --- diff --git a/includes/db/LoadBalancer.php b/includes/db/LoadBalancer.php index 069b8e1766..ab3174fc15 100644 --- a/includes/db/LoadBalancer.php +++ b/includes/db/LoadBalancer.php @@ -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 );