aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-05-14 18:56:37 +0800
committerFelix Lange <fjl@twurst.com>2015-05-14 18:56:37 +0800
commit5f706cd7f5a97b3354b23de4273009f08586ff04 (patch)
tree89b75a5358b76211cfa32630ac5f7d353c82d78b /cmd
parentc14de2e9733685e60f165ee5f2dd1f7c17f3f6cd (diff)
downloaddexon-5f706cd7f5a97b3354b23de4273009f08586ff04.tar.gz
dexon-5f706cd7f5a97b3354b23de4273009f08586ff04.tar.zst
dexon-5f706cd7f5a97b3354b23de4273009f08586ff04.zip
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.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/utils/flags.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index ddbd36b5c..6ec4fdc55 100644
--- a/cmd/utils/flags.go
+++ b/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)