Skip to content

Log error messages of the OcRestClient #1332

@dennis531

Description

@dennis531

While debugging the plugin, we noticed that the ingestClient send no request to Opencast and didn't log a helpful error message. The problem is for example at

public function createMediaPackage()
{
$response = $this->opencastApi->ingest->createMediaPackage();
if (in_array($response['code'], [200, 201]) !== false) {
return $response['body'];
}
return false;
}
, where the client silently ignores the exception message from the OcRestClient, making debugging impossible.

The plugin should log exceptions for better debugging.

Metadata

Metadata

Assignees

Labels

type:featurev:3Everything related to the Stud.IP Opencast Plugin Version 3.x

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions