From db846c31e6b81f6eb2341d8db01b2c603af3e507 Mon Sep 17 00:00:00 2001 From: hzxuzhonghu Date: Tue, 14 Nov 2017 19:38:10 +0800 Subject: [PATCH] fix comment typo and use wait.Forever Kubernetes-commit: 9a88f1514134c62f959eee28fdc81519f87715e6 --- pkg/util/logs/logs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/util/logs/logs.go b/pkg/util/logs/logs.go index 392bbc0fb..a3909583a 100644 --- a/pkg/util/logs/logs.go +++ b/pkg/util/logs/logs.go @@ -46,8 +46,8 @@ func (writer GlogWriter) Write(data []byte) (n int, err error) { func InitLogs() { log.SetOutput(GlogWriter{}) log.SetFlags(0) - // The default glog flush interval is 30 seconds, which is frighteningly long. - go wait.Until(glog.Flush, *logFlushFreq, wait.NeverStop) + // The default glog flush interval is 5 seconds. + go wait.Forever(glog.Flush, *logFlushFreq) } // FlushLogs flushes logs immediately.