Page MenuHomePhabricator

Add more context to the math extension logs
Closed, InvalidPublic

Description

Another pretty common one is "Cannot get mml. Server problem." but this logline also doesn't seem to have any context that can be used to figure out the problem with the server. Best way forward is probably to ensure that context gets logged to logstash. If we know what kind of responsecode, which server etc then maybe we can find a better cause ?

Add context information to this and related error messages

Event Timeline

The error details already go to the logs

		$this->log()->error( 'Restbase math server problem', [
			'urlparams' => $request['url'],
			'response' => [ 'code' => $response['code'], 'body' => $response['body'] ],
			'math_type' => $type,
			'tex' => $this->tex
		] );

The question is how to get the context from the logs.