修改日志获取问题

This commit is contained in:
陈景阳
2019-10-17 17:54:19 +08:00
parent f9882cf0f5
commit 418d728825
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ func GetLocalLog(logPath string) (fileBytes []byte, err error) {
}
defer f.Close()
const bufLen = 2 * 1024 * 1024
const bufLen = 1 * 1024 * 1024
logBuf := make([]byte, bufLen)
off := int64(0)

View File

@@ -50,7 +50,7 @@ func GetRemoteLog(task model.Task) (logStr string, err error) {
case logStr = <-ch:
log.Infof("get remote log")
break
case <-time.After(5 * time.Second):
case <-time.After(30 * time.Second):
logStr = "get remote log timeout"
break
}