Skip to content

Commit

Permalink
fix undefined command summary
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Nov 8, 2024
1 parent 2669769 commit fa7e3da
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 fa7e3da

Please sign in to comment.