mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 18:31:36 +00:00
better log content (#365)
This commit is contained in:
parent
1ca72d7ddd
commit
deb0b328e3
@ -132,10 +132,12 @@ public function getContent($lines = null): ?string
|
||||
return tail(Storage::disk($this->disk)->path($this->name), $lines);
|
||||
}
|
||||
|
||||
return Storage::disk($this->disk)->get($this->name);
|
||||
$content = Storage::disk($this->disk)->get($this->name);
|
||||
|
||||
return $content ?? 'Empty log file!';
|
||||
}
|
||||
|
||||
return '';
|
||||
return "Log file doesn't exist!";
|
||||
}
|
||||
|
||||
public static function log(Server $server, string $type, string $content, ?Site $site = null): static
|
||||
|
Loading…
x
Reference in New Issue
Block a user