mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-17 21:08:25 +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"
|
||||
"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, " "))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue