Skip to content

Commit fa7e3da

Browse files
committed
fix undefined command summary
1 parent 2669769 commit fa7e3da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Commands/Remote/SSHBaseCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,14 @@ protected function executeCommand(array $command_args, int $retries = 0)
100100
// Send the combined command line via SSH
101101
$ssh_data = $this->sendCommandViaSsh($command_line, $env_vars);
102102

103+
$command_summary = $this->getCommandSummary($command_args);
103104
// Log the command execution
104105
$this->log()->notice(
105106
'Command: {site}.{env} -- {command} [Exit: {exit}] (Attempt {attempt}/{max_attempts})',
106107
[
107108
'site' => $this->site->getName(),
108109
'env' => $this->environment->id,
109-
'command' => $this->getCommandSummary($command_args),
110+
'command' => $command_summary,
110111
'exit' => $ssh_data['exit_code'],
111112
'attempt' => $attempt + 1,
112113
'max_attempts' => $max_attempts,

0 commit comments

Comments
 (0)