瀏覽代碼

cmd/utils: print messages from package log through glog

Some of the dependencies use package log. This change ensures that the
log output looks uniform and respects glog flags.
Felix Lange 10 年之前
父節點
當前提交
5f706cd7f5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      cmd/utils/flags.go

+ 1 - 0
cmd/utils/flags.go

@@ -277,6 +277,7 @@ func GetNodeKey(ctx *cli.Context) (key *ecdsa.PrivateKey) {
 func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config {
 	// Set verbosity on glog
 	glog.SetV(ctx.GlobalInt(VerbosityFlag.Name))
+	glog.CopyStandardLogTo("INFO")
 	// Set the log type
 	//glog.SetToStderr(ctx.GlobalBool(LogToStdErrFlag.Name))
 	glog.SetToStderr(true)