Skip to content

Commit

Permalink
set default sinceSeconds to 300 (derailed#1965)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewspiers authored Feb 11, 2023
1 parent 7ca8ad8 commit 0d7678b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ var expectedConfig = `k9s:
logger:
tail: 500
buffer: 800
sinceSeconds: 60
sinceSeconds: 300
fullScreenLogs: false
textWrap: false
showTime: false
Expand Down Expand Up @@ -389,7 +389,7 @@ var resetConfig = `k9s:
logger:
tail: 200
buffer: 2000
sinceSeconds: 60
sinceSeconds: 300
fullScreenLogs: false
textWrap: false
showTime: false
Expand Down
2 changes: 1 addition & 1 deletion internal/config/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const (
// MaxLogThreshold sets the max value for log size.
MaxLogThreshold = 5000
// DefaultSinceSeconds tracks default log age.
DefaultSinceSeconds = 60 // all logs
DefaultSinceSeconds = 300 // all logs
)

// Logger tracks logger options.
Expand Down

0 comments on commit 0d7678b

Please sign in to comment.