diff --git a/cmd/minikube/cmd/root.go b/cmd/minikube/cmd/root.go
index <HASH>..<HASH> 100644
--- a/cmd/minikube/cmd/root.go
+++ b/cmd/minikube/cmd/root.go
@@ -78,6 +78,17 @@ var RootCmd = &cobra.Command{
 			}
 		}
 
+		// Log level 3 or greater enables libmachine logs
+		if !glog.V(3) {
+			log.SetOutWriter(ioutil.Discard)
+			log.SetErrWriter(ioutil.Discard)
+		}
+
+		// Log level 7 or greater enables debug level logs
+		if glog.V(7) {
+			log.SetDebug(true)
+		}
+
 		if viper.GetBool(showLibmachineLogs) {
 			fmt.Println(`
 --show-libmachine-logs is deprecated.
@@ -128,17 +139,6 @@ func init() {
 	//TODO(r2d4): config should not reference API
 	clientType = configCmd.GetClientType()
 
-	// Log level 3 or greater enables libmachine logs
-	if !glog.V(3) {
-		log.SetOutWriter(ioutil.Discard)
-		log.SetErrWriter(ioutil.Discard)
-	}
-
-	// Log level 7 or greater enables debug level logs
-	if glog.V(7) {
-		log.SetDebug(true)
-	}
-
 	if enableUpdateNotification {
 		notify.MaybePrintUpdateTextFromGithub(os.Stderr)
 	}
Set log levels in command prerun

If this is called in init, glog and viper haven't been properly set up
yet, so it does not trigger the logging output.