Display the go version inf CmdInfo in non-debug mode
diff --git a/commands.go b/commands.go
index 1f2b13e..34de4f6 100644
--- a/commands.go
+++ b/commands.go
@@ -284,11 +284,12 @@
len(srv.runtime.List()),
VERSION,
imgcount)
+ fmt.Fprintf(stdout, "Go version: %s\n", runtime.Version())
if os.Getenv("DEBUG") == "" {
return nil
}
- fmt.Fprintf(stdout, "Go version: %s\n", runtime.Version())
+
fmt.Fprintln(stdout, "debug mode enabled")
fmt.Fprintf(stdout, "fds: %d\ngoroutines: %d\n", getTotalUsedFds(), runtime.NumGoroutine())
return nil