Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: client/logdog/butler/butler.go

Issue 2153383003: LogDog: Actually use default max buffer age. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/logdog/butler/butler.go
diff --git a/client/logdog/butler/butler.go b/client/logdog/butler/butler.go
index eac96baf88ae23a92b07518369e366c31c3addce..3bada39b0498da3c6699244a4809510562a8b2a2 100644
--- a/client/logdog/butler/butler.go
+++ b/client/logdog/butler/butler.go
@@ -149,6 +149,9 @@ func New(ctx context.Context, config Config) (*Butler, error) {
}
if config.BufferLogs {
bc.MaxBufferDelay = config.MaxBufferAge
+ if bc.MaxBufferDelay <= 0 {
+ bc.MaxBufferDelay = DefaultMaxBufferAge
+ }
}
lb := bundler.New(bc)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698