fix duplicate log
This commit is contained in:
parent
12e83aa8d2
commit
69b2d96c92
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue