Add verbose logging
parent
0df72cadd5
commit
8894ed78b9
|
@ -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)
|
||||
|
|
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue