1
1
mirror of https://github.com/go-gitea/gitea synced 2025-10-31 19:38:23 +00:00

feat: tranfer log to storage

This commit is contained in:
Jason Song
2022-10-19 15:49:23 +08:00
parent d2f8d5ded1
commit 8dbe30dff9
8 changed files with 129 additions and 46 deletions

View File

@@ -180,7 +180,7 @@ func BuildViewPost(ctx *context.Context) {
index := step.LogIndex + cursor.Cursor
length := step.LogLength - cursor.Cursor
offset := (*task.LogIndexes)[index]
logRows, err = bots.ReadLogs(ctx, task.LogFilename, offset, length)
logRows, err = bots.ReadLogs(ctx, task.LogInStorage, task.LogFilename, offset, length)
if err != nil {
ctx.Error(http.StatusInternalServerError, err.Error())
return