fix comment typo and use wait.Forever

pull/6/head
hzxuzhonghu 2017-11-14 19:38:10 +08:00
parent 2d64ce5e8e
commit 9a88f15141
1 changed files with 2 additions and 2 deletions

View File

@ -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.