mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
- 2.x - sites finishing
This commit is contained in:
@ -114,7 +114,7 @@ public function getContent($lines = null): ?string
|
||||
return '';
|
||||
}
|
||||
|
||||
public static function log(Server $server, string $type, string $content, ?Site $site = null): void
|
||||
public static function log(Server $server, string $type, string $content, ?Site $site = null): static
|
||||
{
|
||||
$log = new static([
|
||||
'server_id' => $server->id,
|
||||
@ -125,6 +125,8 @@ public static function log(Server $server, string $type, string $content, ?Site
|
||||
]);
|
||||
$log->save();
|
||||
$log->write($content);
|
||||
|
||||
return $log;
|
||||
}
|
||||
|
||||
public static function make(Server $server, string $type): ServerLog
|
||||
|
Reference in New Issue
Block a user