Skip to content

Commit f2cd246

Browse files
committed
feat: add logging for command execution in RunCommandWithOutputRemote and ExecuteMultiplesCommand
1 parent 8071ea0 commit f2cd246

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/server/connector/connector_sdumont/connector_sdumont.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ func (c *ConnectorSDumont) RunCommandWithOutputRemote(command string, args ...st
4545
fullCommand := append([]string{"-c", command}, args...)
4646
cmd := exec.Command(shell, fullCommand...)
4747
output, err := cmd.CombinedOutput()
48+
4849
println(string(output))
4950
if err != nil {
5051
return "", fmt.Errorf("failed to execute command: %w", err)
@@ -69,6 +70,8 @@ func (s *ConnectorSDumont) ExecuteMultiplesCommand(commands []string) {
6970
cmd := exec.Command(shell, fullCommand...)
7071
output, err := cmd.CombinedOutput()
7172

73+
fmt.Printf("Executing command: %s %v\n", command, fullCommand)
74+
7275
if err != nil {
7376
fmt.Printf("failed to execute command: %s\n", err)
7477
}

0 commit comments

Comments
 (0)