Remove duplicate keys from log message

Bug: T138539
Change-Id: I2289864f20f764e1d9c74a282b3e9d1e1155c11b
This commit is contained in:
Erik Bernhardson 2016-06-23 15:08:03 -07:00 committed by Mobrovac
parent 4d0af433cd
commit a4eb926249

View file

@ -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." );