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