From 5f706cd7f5a97b3354b23de4273009f08586ff04 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 14 May 2015 12:56:37 +0200 Subject: [PATCH] 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. --- cmd/utils/flags.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index ddbd36b5cc..6ec4fdc552 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)