Skip to content

Commit

Permalink
Merge pull request #12 from fujiwara/fix/fetch-logs
Browse files Browse the repository at this point in the history
fetch logs after pull stopped + duration
  • Loading branch information
fujiwara authored Jul 25, 2023
2 parents 446cec0 + 9b73a02 commit ab7631d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,10 @@ func (t *Tracer) setBoundaries(task *ecsTypes.Task) {
} else {
t.headEnd = task.CreatedAt.Add(d)
}
// logs are not output before pull stopped
if task.PullStoppedAt != nil {
t.headEnd = task.PullStoppedAt.Add(d)
}

if task.StoppingAt != nil {
t.tailBegin = task.StoppingAt.Add(-d)
Expand Down

0 comments on commit ab7631d

Please sign in to comment.