Skip to content

Commit

Permalink
fix undefined command summary (#2614)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler authored Dec 3, 2024
1 parent 9f7a65e commit 10cd3e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/Remote/SSHBaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,14 @@ protected function executeCommand(array $command_args, int $retries = 0)
// Send the combined command line via SSH
$ssh_data = $this->sendCommandViaSsh($command_line, $env_vars);

$command_summary = $this->getCommandSummary($command_args);
// Log the command execution
$this->log()->notice(
'Command: {site}.{env} -- {command} [Exit: {exit}] (Attempt {attempt}/{max_attempts})',
[
'site' => $this->site->getName(),
'env' => $this->environment->id,
'command' => $this->getCommandSummary($command_args),
'command' => $command_summary,
'exit' => $ssh_data['exit_code'],
'attempt' => $attempt + 1,
'max_attempts' => $max_attempts,
Expand Down

0 comments on commit 10cd3e1

Please sign in to comment.