Skip to content

Commit

Permalink
Merge pull request #7220 from kubernetes/flush-glug
Browse files Browse the repository at this point in the history
Flush logs before writing to stdout
  • Loading branch information
medyagh authored Mar 25, 2020
2 parents 898fe0e + ab4b7d9 commit 9f15f8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/minikube/out/out.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f15f8d

Please sign in to comment.