Add verbose logging

pull/2078/head
Matt Rickard 2017-10-17 15:16:02 -07:00
parent 0df72cadd5
commit 8894ed78b9
2 changed files with 8 additions and 1 deletions

View File

@ -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)

View File

@ -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.")