diff --git a/routers/api/v1/repo/cloudbrain.go b/routers/api/v1/repo/cloudbrain.go index 066453e72..8d87954b3 100755 --- a/routers/api/v1/repo/cloudbrain.go +++ b/routers/api/v1/repo/cloudbrain.go @@ -662,7 +662,8 @@ func CloudbrainGetLog(ctx *context.APIContext) { if ctx.Data["existStr"] != nil && result["Lines"].(int) < 50 { content = content + ctx.Data["existStr"].(string) } - } else { + } + if job.JobType == string(models.JobTypeTrain) || job.JobType == string(models.JobTypeInference) { if ctx.Data["existStr"] != nil { content = content + ctx.Data["existStr"].(string) }