mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-18 05:19:19 +08:00
chore: remove debug log in controller (#10958)
This commit is contained in:
parent
e4e2d76f75
commit
45a32ff255
1 changed files with 0 additions and 4 deletions
|
|
@ -5,7 +5,6 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/1Panel-dev/1Panel/agent/global"
|
|
||||||
"github.com/1Panel-dev/1Panel/agent/utils/cmd"
|
"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) {
|
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, " "))
|
return cmd.NewCommandMgr(cmd.WithTimeout(10*time.Second)).RunWithStdoutBashCf("LANGUAGE=en_US:en %s %s", name, strings.Join(args, " "))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue