Merge pull request #336 from nextcloud/enh/noid/allow-to-get-mastercontainer-logs

allow to get the mastercontainer logs from the frontend
This commit is contained in:
Simon L 2022-03-14 15:01:08 +01:00 committed by GitHub
commit 6beaa3b391
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

View file

@ -120,12 +120,12 @@ class DockerActionManager
}
}
public function GetLogs(Container $container) : string
public function GetLogs(string $id) : string
{
$url = $this->BuildApiUrl(
sprintf(
'containers/%s/logs?stdout=true&stderr=true',
urlencode($container->GetIdentifier())
urlencode($id)
));
$responseBody = (string)$this->guzzleClient->get($url)->getBody();