Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
rucciva committed Nov 20, 2023
1 parent 08f3cc7 commit 9d7ea16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,5 +228,9 @@ func (s *Logstream) SkiptoCatchUp(maxlag time.Duration) {
if now.Sub(s.start) <= maxlag {
return
}
s.start = now.Add(-maxlag)

newStart := now.Add(-maxlag)
log.Printf("[WARN] logs of '%s''%s' from '%s' to '%s' will be skipped .\n",
s.group.LogGroupName, s.stream.LogStreamName, s.start, newStart)
s.start = newStart
}

0 comments on commit 9d7ea16

Please sign in to comment.