From dbe32704a5d74b0e4e6d7b35b7e5fa7ab33c0403 Mon Sep 17 00:00:00 2001 From: iwilltry42 Date: Thu, 11 Mar 2021 10:57:21 +0100 Subject: [PATCH] root: add goos/goarch debug log --- cmd/root.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 1e3d8ff6..2f3f1fb6 100644 --- a/cmd/root.go +++ b/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() {