Browse Source

#3157

fix bug
tags/v1.22.11.2^2
chenyifan01 3 years ago
parent
commit
ce24e32f90
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      routers/repo/grampus.go

+ 5
- 1
routers/repo/grampus.go View File

@@ -938,7 +938,11 @@ func GrampusGetLog(ctx *context.Context) {
content, err := grampus.GetTrainJobLog(job.JobID)
if err != nil {
log.Error("GetTrainJobLog failed: %v", err, ctx.Data["MsgID"])
ctx.ServerError(err.Error(), err)
ctx.JSON(http.StatusOK, map[string]interface{}{
"JobName": job.JobName,
"Content": "",
"CanLogDownload": false,
})
return
}
canLogDownload := err == nil && job.IsUserHasRight(ctx.User)


Loading…
Cancel
Save