remove  in select
@@ -49,10 +49,8 @@ func GetRemoteLog(task model.Task) (logStr string, err error) {
select {
case logStr = <-ch:
log.Infof("get remote log")
- break
case <-time.After(30 * time.Second):
logStr = "get remote log timeout"
- break
}
return logStr, nil
