Skip to content

Commit

Permalink
Revert "fix undefined command summary"
Browse files Browse the repository at this point in the history
This reverts commit 48c5d82.
  • Loading branch information
pwtyler committed Nov 8, 2024
1 parent 37e5392 commit 8bc7810
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Commands/Remote/SSHBaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,13 @@ 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' => $command_summary,
'command' => $this->getCommandSummary($command_args),
'exit' => $ssh_data['exit_code'],
'attempt' => $attempt + 1,
'max_attempts' => $max_attempts,
Expand Down

0 comments on commit 8bc7810

Please sign in to comment.