Browse Source

日志文件名称

tags/v1.21.12.1
liuzx 4 years ago
parent
commit
f57e14a387
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      routers/api/v1/repo/modelarts.go

+ 6
- 5
routers/api/v1/repo/modelarts.go View File

@@ -184,11 +184,12 @@ func TrainJobGetLog(ctx *context.APIContext) {
// }

ctx.JSON(http.StatusOK, map[string]interface{}{
"JobID": jobID,
"StartLine": result.StartLine,
"EndLine": result.EndLine,
"Content": result.Content,
"Lines": result.Lines,
"JobID": jobID,
"LogFileName": resultLogFile.LogFileList[0],
"StartLine": result.StartLine,
"EndLine": result.EndLine,
"Content": result.Content,
"Lines": result.Lines,
})
}



Loading…
Cancel
Save