From 4597e3c34e7fef2d503e0a19be0d6c491d3ed1bc Mon Sep 17 00:00:00 2001 From: lewis <747342561@qq.com> Date: Thu, 8 Apr 2021 16:58:32 +0800 Subject: [PATCH] add lines --- routers/api/v1/repo/modelarts.go | 3 +++ 1 file changed, 3 insertions(+) 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, }) }