|
|
|
@@ -2895,6 +2895,7 @@ func GetLogFromModelDir(ctx *context.Context) { |
|
|
|
} |
|
|
|
startLine := ctx.QueryInt("startLine") |
|
|
|
endLine := ctx.QueryInt("endLine") |
|
|
|
|
|
|
|
re := "" |
|
|
|
for _, file := range files { |
|
|
|
if strings.HasSuffix(file.FileName, "log.txt") { |
|
|
|
@@ -2905,6 +2906,7 @@ func GetLogFromModelDir(ctx *context.Context) { |
|
|
|
r := bufio.NewReader(reader) |
|
|
|
for i := 0; i < endLine; i++ { |
|
|
|
line, error := r.ReadString('\n') |
|
|
|
log.Info("line=" + line) |
|
|
|
if error == io.EOF { |
|
|
|
log.Info("read file completed.") |
|
|
|
break |
|
|
|
|