Browse Source

fix issue

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

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

@@ -573,6 +573,12 @@ func CloudbrainGetLog(ctx *context.APIContext) {
}
}
}
else {
if startLine > 0 {
startLine += 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