Replace Printf with log.Debugf
This commit is contained in:
parent
5ce62bc7de
commit
3d77209b53
@ -628,10 +628,8 @@ func executeCommandInJail(jail *Jail, cmdline string) (string, error) {
|
|||||||
// else
|
// else
|
||||||
word = word + string(c)
|
word = word + string(c)
|
||||||
}
|
}
|
||||||
|
|
||||||
if gDebug {
|
log.Debugf("executeCommandInJail: will execute \"%s\"\n", strings.Join(cmd, " "))
|
||||||
fmt.Printf("DEBUG: executeCommandInJail: prepare to execute \"%s\"\n", cmd)
|
|
||||||
}
|
|
||||||
|
|
||||||
out, err := exec.Command(cmd[0], cmd[1:]...).CombinedOutput()
|
out, err := exec.Command(cmd[0], cmd[1:]...).CombinedOutput()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user