From 3d77209b5366a54f58258fe2cf42bc0d85727661 Mon Sep 17 00:00:00 2001 From: yo Date: Thu, 5 Sep 2024 09:32:40 +0200 Subject: [PATCH] Replace Printf with log.Debugf --- cmd/utils.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/utils.go b/cmd/utils.go index 6b5746e..86ca70b 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -628,10 +628,8 @@ func executeCommandInJail(jail *Jail, cmdline string) (string, error) { // else 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()