chore: remove debug log in controller (#10958)

This commit is contained in:
ssongliu 2025-11-14 13:42:50 +08:00 committed by GitHub
parent e4e2d76f75
commit 45a32ff255
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,6 @@ import (
"strings"
"time"
"github.com/1Panel-dev/1Panel/agent/global"
"github.com/1Panel-dev/1Panel/agent/utils/cmd"
)
@ -20,8 +19,5 @@ func handlerErr(out string, err error) error {
}
func run(name string, args ...string) (string, error) {
if global.LOG != nil {
global.LOG.Debugf("handle with controller `%s %s`", name, strings.Join(args, " "))
}
return cmd.NewCommandMgr(cmd.WithTimeout(10*time.Second)).RunWithStdoutBashCf("LANGUAGE=en_US:en %s %s", name, strings.Join(args, " "))
}