From 498213cc9f8c787271736d28c8556ee6616605ac Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 1 Aug 2011 23:28:06 +0000 Subject: [PATCH] Merge live hack - Extra debugging on connection failures --- includes/db/LoadBalancer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1