Browse Source

调整GPU训练任务的日志显示逻辑。#2706

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.8.2^2
zouap 3 years ago
parent
commit
87010bf0a5
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      routers/repo/cloudbrain.go

+ 3
- 3
routers/repo/cloudbrain.go View File

@@ -2899,9 +2899,9 @@ func GetLogFromModelDir(ctx *context.Context) {
re := ""
for _, file := range files {
if strings.HasSuffix(file.FileName, "log.txt") {
log.Info("filename=" + file.FileName)
log.Info("path=" + storage.GetMinioPath(ctx.Cloudbrain.JobName+ModelMountPath, file.FileName))
reader, err := os.Open(storage.GetMinioPath(ctx.Cloudbrain.JobName+ModelMountPath, file.FileName))
path := storage.GetMinioPath(ctx.Cloudbrain.JobName+ModelMountPath+"/", file.FileName)
log.Info("path=" + path)
reader, err := os.Open(path)
defer reader.Close()
if err == nil {
r := bufio.NewReader(reader)


Loading…
Cancel
Save