|
|
|
@@ -225,6 +225,14 @@ func TrainJobForModelConvertGetLog(ctx *context.APIContext) { |
|
|
|
if err != nil { |
|
|
|
log.Error("trainJobGetLog(%s) failed:%v", jobID, err.Error()) |
|
|
|
// ctx.RenderWithErr(err.Error(), tplModelArtsTrainJobShow, nil) |
|
|
|
ctx.JSON(http.StatusOK, map[string]interface{}{ |
|
|
|
"JobID": jobID, |
|
|
|
"LogFileName": "", |
|
|
|
"StartLine": "0", |
|
|
|
"EndLine": "0", |
|
|
|
"Content": "", |
|
|
|
"Lines": 0, |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|