From 8894ed78b9cc1b0c43b7faa21d6b4feb91610257 Mon Sep 17 00:00:00 2001 From: Matt Rickard Date: Tue, 17 Oct 2017 15:16:02 -0700 Subject: [PATCH] Add verbose logging --- cmd/minikube/cmd/start.go | 4 ++++ pkg/minikube/cluster/cluster.go | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cmd/minikube/cmd/start.go b/cmd/minikube/cmd/start.go index f057b8ada08f..3d0f6ab77e66 100644 --- a/cmd/minikube/cmd/start.go +++ b/cmd/minikube/cmd/start.go @@ -86,6 +86,10 @@ assumes you have already installed one of the VM drivers: virtualbox/vmwarefusio } func runStart(cmd *cobra.Command, args []string) { + if glog.V(8) { + glog.Infoln("Viper configuration:") + viper.Debug() + } shouldCacheImages := viper.GetBool(cacheImages) k8sVersion := viper.GetString(kubernetesVersion) clusterBootstrapper := viper.GetString(cmdcfg.Bootstrapper) diff --git a/pkg/minikube/cluster/cluster.go b/pkg/minikube/cluster/cluster.go index b17f9e12e917..bbc6dcf6dc6e 100644 --- a/pkg/minikube/cluster/cluster.go +++ b/pkg/minikube/cluster/cluster.go @@ -61,10 +61,13 @@ func StartHost(api libmachine.API, config MachineConfig) (*host.Host, error) { return nil, errors.Wrapf(err, "Error checking if host exists: %s", cfg.GetMachineName()) } if !exists { + glog.Infoln("Machine does not exist... provisioning new machine") + glog.Infof("Provisioning machine with config: %+v", config) return createHost(api, config) + } else { + glog.Infoln("Skipping create...Using existing machine configuration") } - glog.Infoln("Machine exists!") h, err := api.Load(cfg.GetMachineName()) if err != nil { return nil, errors.Wrap(err, "Error loading existing host. Please try running [minikube delete], then run [minikube start] again.")