Skip to content

Commit

Permalink
Merge pull request #5574 from sharifelgamal/libmachine
Browse files Browse the repository at this point in the history
Add libmachine debug logs back
  • Loading branch information
sharifelgamal authored Oct 9, 2019
2 parents c0e51aa + e15c725 commit 0f804a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/minikube/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ import (
const minikubeEnableProfile = "MINIKUBE_ENABLE_PROFILING"

var (
machineLogErrorRe = regexp.MustCompile(`(?i) (failed|error|fatal)`)
// This regex is intentionally very specific, it's supposed to surface
// unexpected errors from libmachine to the user.
machineLogErrorRe = regexp.MustCompile(`VirtualizationException`)
machineLogWarningRe = regexp.MustCompile(`(?i)warning`)
)

Expand All @@ -67,6 +69,7 @@ func bridgeLogMessages() {
log.SetOutput(stdLogBridge{})
mlog.SetErrWriter(machineLogBridge{})
mlog.SetOutWriter(machineLogBridge{})
mlog.SetDebug(true)
}

type stdLogBridge struct{}
Expand Down

0 comments on commit 0f804a7

Please sign in to comment.