From 81202351ca520fb75a19fd9fb259fb20a55d4fa1 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 4 Nov 2013 13:43:44 -0800 Subject: [PATCH] Include server in redis lua errors Change-Id: Ib8dbed08fa9d8010d496475de44f61aca31fd410 --- includes/clientpool/RedisConnectionPool.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/clientpool/RedisConnectionPool.php b/includes/clientpool/RedisConnectionPool.php index ef71b1826a..f7653eb2a6 100644 --- a/includes/clientpool/RedisConnectionPool.php +++ b/includes/clientpool/RedisConnectionPool.php @@ -336,7 +336,8 @@ class RedisConnRef { } if ( $conn->getLastError() ) { // script bug? - wfDebugLog( 'redis', "Lua script error: " . $conn->getLastError() ); + $server = $this->server; + wfDebugLog( 'redis', "Lua script error on server $server: " . $conn->getLastError() ); } return $res; -- 2.20.1