Explorar o código

cmd/geth: print version on geth start (#2622)

Matthew Di Ferrante %!s(int64=9) %!d(string=hai) anos
pai
achega
68b48cc045
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      cmd/geth/main.go

+ 2 - 0
cmd/geth/main.go

@@ -310,6 +310,8 @@ func initGenesis(ctx *cli.Context) error {
 // it unlocks any requested accounts, and starts the RPC/IPC interfaces and the
 // miner.
 func startNode(ctx *cli.Context, stack *node.Node) {
+	// Report geth version
+	glog.V(logger.Info).Infof("instance: Geth/%s/%s/%s\n", verString, runtime.Version(), runtime.GOOS)
 	// Start up the node itself
 	utils.StartNode(stack)