Skip to content

Commit 721b0c7

Browse files
committed
fix
1 parent b69e713 commit 721b0c7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/pkg/cli/tail.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ func tail(ctx context.Context, provider client.Provider, projectName string, opt
215215
var since, until *timestamppb.Timestamp
216216
if pkg.IsValidTime(options.Since) {
217217
since = timestamppb.New(options.Since)
218+
} else {
219+
options.Since = time.Now() // this is used to continue from the last timestamp
218220
}
219221
if pkg.IsValidTime(options.Until) {
220222
until = timestamppb.New(options.Until)

src/pkg/clouds/aws/ecs/logs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func TailLogGroups(ctx context.Context, start time.Time, logGroups ...LogGroupIn
3636
for _, lgi := range logGroups {
3737
es, err := QueryAndTailLogGroup(ctx, lgi, start)
3838
if err != nil {
39+
cancel()
3940
return nil, err
4041
}
4142
go func() {

0 commit comments

Comments
 (0)