From 69b2d96c92d679fedad3f91dbe7980b225e7be5f Mon Sep 17 00:00:00 2001 From: speatzle Date: Thu, 9 May 2024 19:12:59 +0200 Subject: [PATCH] fix duplicate log --- task/task.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/task/task.go b/task/task.go index 56416d0..df7c51a 100644 --- a/task/task.go +++ b/task/task.go @@ -63,6 +63,8 @@ func Get(r types.TaskStatusRequest) (*types.Task, error) { // Send only new logs if there are any if len(res.Log) >= r.LogOffset { res.Log = res.Log[r.LogOffset:] + } else { + res.Log = []string{} } return &res, nil