We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8093888 commit e7f86e1Copy full SHA for e7f86e1
task.go
@@ -41,7 +41,8 @@ func startTask(task *TaskQueue) {
41
return
42
}
43
out, err := exec.Command("/bin/sh", filePath).Output()
44
- log.Println(filePath, "执行结果:", out)
+ log.Println(filePath, "执行结果:", string(out))
45
+ utils.Log2file(fmt.Sprintf("%s执行结果:%s", filePath, string(out)), GetLogName(task.Id))
46
if err == nil {
47
utils.Log2file(fmt.Sprintf("部署成功:%s", filePath), GetLogName(task.Id))
48
} else {
0 commit comments