Display the go version inf CmdInfo in non-debug mode
This commit is contained in:
parent
c255976909
commit
5098c4fc00
|
@ -284,11 +284,12 @@ func (srv *Server) CmdInfo(stdin io.ReadCloser, stdout io.Writer, args ...string
|
||||||
len(srv.runtime.List()),
|
len(srv.runtime.List()),
|
||||||
VERSION,
|
VERSION,
|
||||||
imgcount)
|
imgcount)
|
||||||
|
fmt.Fprintf(stdout, "Go version: %s\n", runtime.Version())
|
||||||
|
|
||||||
if os.Getenv("DEBUG") == "" {
|
if os.Getenv("DEBUG") == "" {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
fmt.Fprintf(stdout, "Go version: %s\n", runtime.Version())
|
|
||||||
fmt.Fprintln(stdout, "debug mode enabled")
|
fmt.Fprintln(stdout, "debug mode enabled")
|
||||||
fmt.Fprintf(stdout, "fds: %d\ngoroutines: %d\n", getTotalUsedFds(), runtime.NumGoroutine())
|
fmt.Fprintf(stdout, "fds: %d\ngoroutines: %d\n", getTotalUsedFds(), runtime.NumGoroutine())
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue