diff --git a/routers/api/v1/repo/modelarts.go b/routers/api/v1/repo/modelarts.go index 3f312776d..c654b9c26 100755 --- a/routers/api/v1/repo/modelarts.go +++ b/routers/api/v1/repo/modelarts.go @@ -81,6 +81,8 @@ func TrainJobGetLog(ctx *context.APIContext) { err error ) + log.Info("test") + var jobID = ctx.Params(":jobid") var logFileName = ctx.Query("file_name") var baseLine = ctx.Query("base_line") @@ -117,5 +119,6 @@ func TrainJobGetLog(ctx *context.APIContext) { "StartLine": result.StartLine, "EndLine": result.EndLine, "Content": result.Content, + "Lines": result.Lines, }) }