Merge pull request #1858 from Omikorin/patch-1

fix: empty get logs number of lines
This commit is contained in:
Andras Bacsai 2024-03-18 11:05:20 +01:00 committed by GitHub
commit 56c08056d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,6 +82,9 @@ public function getLogs($refresh = false)
}
}
if (!$refresh && ($this->resource?->getMorphClass() === 'App\Models\Service' || str($this->container)->contains('-pr-'))) return;
if (!$this->numberOfLines) {
$this->numberOfLines = 1000;
}
if ($this->container) {
if ($this->showTimeStamps) {
if ($this->server->isSwarm()) {