feat: tranfer log to storage

This commit is contained in:
Jason Song committed 2022-11-25 17:48:45 +08:00
1 parent d2f8d5ded1
commit 8dbe30dff9
8 files changed
+129 -46

No files matched your search

+1 -1
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