Replace Printf with log.Debugf

This commit is contained in:
yo 2024-09-05 09:32:40 +02:00
parent 5ce62bc7de
commit 3d77209b53

View File

@ -629,9 +629,7 @@ func executeCommandInJail(jail *Jail, cmdline string) (string, error) {
word = word + string(c)
}
if gDebug {
fmt.Printf("DEBUG: executeCommandInJail: prepare to execute \"%s\"\n", cmd)
}
log.Debugf("executeCommandInJail: will execute \"%s\"\n", strings.Join(cmd, " "))
out, err := exec.Command(cmd[0], cmd[1:]...).CombinedOutput()