fix: empty get logs number of lines

This commit is contained in:
Michał Korczak 2024-03-17 18:27:01 +01:00 committed by GitHub
parent 467c826c04
commit c9054e7d8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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