mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-07-21 21:52:53 +00:00
Fix fetching logs on podman initially
Podman doesn't like an empty `since` URL parameter. Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
@@ -169,12 +169,11 @@ readonly class DockerActionManager {
|
||||
}
|
||||
|
||||
public function GetLogs(string $id, string $since = ''): string {
|
||||
$url = $this->BuildApiUrl(
|
||||
sprintf(
|
||||
'containers/%s/logs?stdout=true&stderr=true×tamps=true&since=%s',
|
||||
urlencode($id),
|
||||
$since
|
||||
));
|
||||
$path = sprintf('containers/%s/logs?stdout=true&stderr=true×tamps=true', urlencode($id));
|
||||
if ($since !== '') {
|
||||
$path .= sprintf('&since=%s', $since);
|
||||
}
|
||||
$url = $this->BuildApiUrl($path);
|
||||
$responseBody = (string)$this->sendHttpRequest('GET', $url)->getBody();
|
||||
|
||||
$response = "";
|
||||
|
||||
Reference in New Issue
Block a user