From 5098c4fc006c15788142a669a0d169b03de7be8b Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Wed, 8 May 2013 16:40:48 -0700 Subject: [PATCH] Display the go version inf CmdInfo in non-debug mode --- commands.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 1f2b13e6f0..34de4f60bd 100644 --- a/commands.go +++ b/commands.go @@ -284,11 +284,12 @@ func (srv *Server) CmdInfo(stdin io.ReadCloser, stdout io.Writer, args ...string 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