From c83dcaf5bb699e108a626e446fdd697ee6df5205 Mon Sep 17 00:00:00 2001 From: liuzx Date: Thu, 17 Nov 2022 10:02:42 +0800 Subject: [PATCH] fix-3108 --- routers/api/v1/repo/cloudbrain.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/routers/api/v1/repo/cloudbrain.go b/routers/api/v1/repo/cloudbrain.go index e57e59b5b..68baf3287 100755 --- a/routers/api/v1/repo/cloudbrain.go +++ b/routers/api/v1/repo/cloudbrain.go @@ -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"]