Merge pull request #7220 from kubernetes/flush-glug
Flush logs before writing to stdoutpull/7228/head
commit
9f15f8d0cd
|
@ -68,6 +68,9 @@ func T(style StyleEnum, format string, a ...V) {
|
|||
|
||||
// String writes a basic formatted string to stdout
|
||||
func String(format string, a ...interface{}) {
|
||||
// Flush log buffer so that output order makes sense
|
||||
glog.Flush()
|
||||
|
||||
if outFile == nil {
|
||||
glog.Warningf("[unset outFile]: %s", fmt.Sprintf(format, a...))
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue