fix logging on ui

This commit is contained in:
Andras Bacsai
2023-08-27 22:05:37 +02:00
parent ab1207e461
commit 5ca0237e34
2 changed files with 3 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ trait ExecuteRemoteCommand
$remote_command = generate_ssh_command($private_key_location, $ip, $user, $port, $command);
$process = Process::timeout(3600)->idleTimeout(3600)->start($remote_command, function (string $type, string $output) use ($command, $hidden) {
$output = Str::of($output)->trim();
$new_log_entry = [
'command' => $command,
'output' => $output,