Skip to content

Commit

Permalink
more useful debug logging for vsphere
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Mar 19, 2017
1 parent a313ccb commit 0f9c49f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/platform/vsphere/vsphere.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,6 @@ func getVMName(client *govmomi.Client, cfg *VSphereConfig) (string, error) {

func newVSphere(cfg VSphereConfig) (*VSphere, error) {

if log.GetLevel() >= log.DebugLevel {
log.Debugf("newVSphere")
}

if cfg.Global.WorkingDir != "" {
cfg.Global.WorkingDir = path.Clean(cfg.Global.WorkingDir) + "/"
}
Expand Down Expand Up @@ -219,6 +215,10 @@ func newVSphere(cfg VSphereConfig) (*VSphere, error) {
}
runtime.SetFinalizer(&vs, logout)

if log.GetLevel() >= log.DebugLevel {
log.Debugf("newVSphere: vs: %#v", vs)
}

return &vs, nil
}

Expand Down

0 comments on commit 0f9c49f

Please sign in to comment.