mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 17:30:40 +00:00
Remove duplicate keys from log message
Bug: T138539 Change-Id: I2289864f20f764e1d9c74a282b3e9d1e1155c11b
This commit is contained in:
parent
4d0af433cd
commit
a4eb926249
|
@ -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." );
|
||||
|
|
Loading…
Reference in a new issue