From a4eb926249bee155748623a7ac7ebadcd2a09943 Mon Sep 17 00:00:00 2001 From: Erik Bernhardson Date: Thu, 23 Jun 2016 15:08:03 -0700 Subject: [PATCH] Remove duplicate keys from log message Bug: T138539 Change-Id: I2289864f20f764e1d9c74a282b3e9d1e1155c11b --- MathRestbaseInterface.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MathRestbaseInterface.php b/MathRestbaseInterface.php index d2eef4f30..c8b18343d 100644 --- a/MathRestbaseInterface.php +++ b/MathRestbaseInterface.php @@ -401,10 +401,12 @@ class MathRestbaseInterface { } return $response['body']; } + // Remove "convenience" duplicate keys put in place by MultiHttpClient + unset( $response[0], $response[1], $response[2], $response[3], $response[4] ); $this->log()->error( 'Restbase math server problem:', [ 'request' => $request, 'response' => $response, - 'type' => $type, + 'math_type' => $type, 'tex' => $this->tex ] ); throw new MWException( "Cannot get $type. Server problem." );