|
|
|
@@ -725,10 +725,10 @@ func getLogFromModelDir(jobName string, startLine int, endLine int, resultPath s |
|
|
|
line, error := r.ReadString('\n') |
|
|
|
if error == io.EOF { |
|
|
|
if i >= startLine { |
|
|
|
fileEndLine = i |
|
|
|
re = re + line |
|
|
|
count++ |
|
|
|
} |
|
|
|
fileEndLine = i+1 |
|
|
|
log.Info("read file completed.") |
|
|
|
break |
|
|
|
} |
|
|
|
@@ -738,12 +738,11 @@ func getLogFromModelDir(jobName string, startLine int, endLine int, resultPath s |
|
|
|
} |
|
|
|
if error == nil { |
|
|
|
if i >= startLine { |
|
|
|
fileEndLine = i |
|
|
|
fileEndLine = i+1 |
|
|
|
re = re + line |
|
|
|
count++ |
|
|
|
} |
|
|
|
} |
|
|
|
fileEndLine = fileEndLine + 1 |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|