Skip to content

Commit

Permalink
Merge pull request #625 from radiofrance/fix/remove-useless-debug-print
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinegelloz authored Oct 29, 2024
2 parents 7781ffa + 3114465 commit bb0348e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/exec/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,10 @@ func (e ShellExecutor) ExecuteWithWriters(stdout, stderr io.Writer, name string,

// ExecuteWithWriter executes a command and forwards both stdout and stderr to a single io.Writer.
func (e ShellExecutor) ExecuteWithWriter(writer io.Writer, name string, args ...string) error {
logger.Debugf("Exec cmd: %s %v", name, args)
return e.ExecuteWithWriters(writer, writer, name, args...)
}

// ExecuteStdout executes a shell command and prints to the standard output.
func (e ShellExecutor) ExecuteStdout(name string, args ...string) error {
logger.Debugf("Exec cmd: %s %v", name, args)
return e.ExecuteWithWriters(os.Stdout, os.Stderr, name, args...)
}

0 comments on commit bb0348e

Please sign in to comment.