added logs

master
Paulo Simão 2021-11-02 19:31:18 -03:00
parent e855d65d60
commit 4f6c373934
1 changed files with 1 additions and 0 deletions

1
lib.go
View File

@ -249,6 +249,7 @@ func Exec(str string, opts ...*Opts) ([]*exec.Cmd, error) {
if err != nil {
fqncmd = filepath.Join(cmdwd, l.Tokens[0])
}
log.Printf("Will call CMD: %s", fqncmd)
cmd := exec.Command(fqncmd, l.Tokens[1:]...)
cmd.Stdout = log.Writer()
cmd.Stderr = log.Writer()