Browse Source

log

tags/v1.21.12.1
lewis 4 years ago
parent
commit
7562a30c42
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      modules/modelarts/resty.go
  2. +1
    -1
      routers/repo/modelarts.go
  3. +1
    -1
      templates/repo/modelarts/trainjob/show.tmpl

+ 1
- 1
modules/modelarts/resty.go View File

@@ -544,7 +544,7 @@ sendjob:
return &result, fmt.Errorf("json.Unmarshal failed(%s): %v", res.String(), err.Error())
}
log.Error("GetTrainJobLog failed(%d):%s(%s)", res.StatusCode(), temp.ErrorCode, temp.ErrorMsg)
return &result, fmt.Errorf("GetTrainJobLog failed(%d):%s(%s)", res.StatusCode(), temp.ErrorCode, temp.ErrorMsg)
return &result, fmt.Errorf("获取作业日志失败(%d):%s(%s)", res.StatusCode(), temp.ErrorCode, temp.ErrorMsg)
}

if !result.IsSuccess {


+ 1
- 1
routers/repo/modelarts.go View File

@@ -607,7 +607,7 @@ func TrainJobGetLog(ctx *context.Context) {
ctx.Data["PageIsTrainJob"] = true

var jobID = ctx.Params(":jobid")
var logFileName = ctx.Query("log_file_name")
var logFileName = ctx.Query("file_name")
var baseLine = ctx.Query("base_line")
var order = ctx.Query("order")



+ 1
- 1
templates/repo/modelarts/trainjob/show.tmpl View File

@@ -113,7 +113,7 @@
</div>
</div>
<div class="ui bottom attached tab segment" data-tab="logs">
<form class="ui form" action="{{$.Link}}/{{.JobID}}/log" method="get">
<form class="ui form" action="{{$.Link}}/log" method="get">
<div class="ui top attached segment" style="background: #f0f0f0;">
<div class="center aligned">
<label>{{$.i18n.Tr "repo.modelarts.log"}}:</label>


Loading…
Cancel
Save