Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: undefined command summary #2614

Open
wants to merge 4 commits into
base: 3.x
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading