Improve redis connection error log
authorTim Starling <tstarling@wikimedia.org>
Fri, 15 Nov 2013 03:44:06 +0000 (14:44 +1100)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sun, 15 Dec 2013 19:07:23 +0000 (20:07 +0100)
Include the server name in the log entry for exceptions thrown during
connect. We are logging a lot of these.

Change-Id: Ia3f775a9e22447efb067c3203a3b80c4385aa2c0

includes/clientpool/RedisConnectionPool.php

index 537deac..8a6718f 100644 (file)
@@ -210,7 +210,7 @@ class RedisConnectionPool {
                        }
                } catch ( RedisException $e ) {
                        $this->downServers[$server] = time() + self::SERVER_DOWN_TTL;
-                       wfDebugLog( 'redis', "Redis exception: " . $e->getMessage() . "\n" );
+                       wfDebugLog( 'redis', "Redis exception connecting to $server: " . $e->getMessage() . "\n" );
 
                        return false;
                }