Merge pull request #8 from wo10378931/develop

修改日志获取问题
This commit is contained in:
暗音
2019-10-17 17:55:19 +08:00
committed by GitHub
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
}