diff --git a/commands.go b/commands.go index dba8cd8572..1f2b13e6f0 100644 --- a/commands.go +++ b/commands.go @@ -11,6 +11,7 @@ import ( "log" "net/http" "net/url" + "os" "path/filepath" "runtime" "strconv" @@ -284,9 +285,10 @@ func (srv *Server) CmdInfo(stdin io.ReadCloser, stdout io.Writer, args ...string VERSION, imgcount) - if !rcli.DEBUG_FLAG { + 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