mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-01 02:36:47 +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'];
|
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:', [
|
$this->log()->error( 'Restbase math server problem:', [
|
||||||
'request' => $request,
|
'request' => $request,
|
||||||
'response' => $response,
|
'response' => $response,
|
||||||
'type' => $type,
|
'math_type' => $type,
|
||||||
'tex' => $this->tex
|
'tex' => $this->tex
|
||||||
] );
|
] );
|
||||||
throw new MWException( "Cannot get $type. Server problem." );
|
throw new MWException( "Cannot get $type. Server problem." );
|
||||||
|
|
Loading…
Reference in a new issue