|
|
|
@@ -658,16 +658,10 @@ func CloudbrainGetLog(ctx *context.APIContext) { |
|
|
|
if result["Content"] != nil { |
|
|
|
content = result["Content"].(string) |
|
|
|
} |
|
|
|
// if job.JobType == string(models.JobTypeModelSafety) { |
|
|
|
|
|
|
|
if ctx.Data["existStr"] != nil && result["Lines"].(int) < 50 { |
|
|
|
content = content + ctx.Data["existStr"].(string) |
|
|
|
} |
|
|
|
// } |
|
|
|
// if job.JobType == string(models.JobTypeTrain) || job.JobType == string(models.JobTypeInference) { |
|
|
|
// if ctx.Data["existStr"] != nil { |
|
|
|
// content = content + ctx.Data["existStr"].(string) |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
logFileName := result["FileName"] |
|
|
|
|
|
|
|
|