Browse Source

fix issue

tags/v1.22.11.1^2
zhoupzh 3 years ago
parent
commit
fd812c2821
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      routers/api/v1/repo/cloudbrain.go

+ 4
- 4
routers/api/v1/repo/cloudbrain.go View File

@@ -572,13 +572,13 @@ func CloudbrainGetLog(ctx *context.APIContext) {
startLine = 0
}
}
}
else {
if startLine>0 {
}else{
if startLine >0 {
startLine += 1
endLine += 1
endLine += 1
}
}
result = getLogFromModelDir(job.JobName, startLine, endLine, resultPath)
if result == nil {
log.Error("GetJobLog failed: %v", err, ctx.Data["MsgID"])


Loading…
Cancel
Save