Skip to content

Commit

Permalink
Merge pull request #343 from werf/feat-dyntracker-grab-logs-only-sinc…
Browse files Browse the repository at this point in the history
…e-start-of-tracking-by-default

feat(dyntracker): grab logs only since tracker start by default
  • Loading branch information
ilya-lesikov authored Mar 29, 2024
2 parents 1837be1 + 4cbddd9 commit 4ccfb17
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/trackers/dyntracker/dynamic_readiness_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ func NewDynamicReadinessTracker(
opts DynamicReadinessTrackerOptions,
) (*DynamicReadinessTracker, error) {
timeout := opts.Timeout
captureLogsFromTime := opts.CaptureLogsFromTime

var captureLogsFromTime time.Time
if opts.CaptureLogsFromTime.IsZero() {
captureLogsFromTime = time.Now()
} else {
captureLogsFromTime = opts.CaptureLogsFromTime
}

var noActivityTimeout time.Duration
if opts.NoActivityTimeout != 0 {
Expand Down

0 comments on commit 4ccfb17

Please sign in to comment.