Skip to content

Commit

Permalink
Merge pull request #2078 from r2d4/verbose-logging
Browse files Browse the repository at this point in the history
Add verbose logging
  • Loading branch information
r2d4 authored Oct 17, 2017
2 parents 5ccaae8 + 8894ed7 commit 3358402
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cmd/minikube/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion pkg/minikube/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 3358402

Please sign in to comment.