root: add goos/goarch debug log

pull/534/head
iwilltry42 4 years ago
parent 6ba281b4e4
commit dbe32704a5
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
  1. 4
      cmd/root.go

@ -31,6 +31,8 @@ import (
"github.com/spf13/cobra"
rt "runtime"
"github.com/rancher/k3d/v4/cmd/cluster"
cfg "github.com/rancher/k3d/v4/cmd/config"
"github.com/rancher/k3d/v4/cmd/image"
@ -182,7 +184,7 @@ func initRuntime() {
log.Fatalln(err)
}
runtimes.SelectedRuntime = runtime
log.Debugf("Selected runtime is '%T'", runtimes.SelectedRuntime)
log.Debugf("Selected runtime is '%T' on GOOS '%s/%s'", runtimes.SelectedRuntime, rt.GOOS, rt.GOARCH)
}
func printVersion() {

Loading…
Cancel
Save