|
|
|
@@ -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) |
|
|
|
|