Skip to content

Commit 5f706cd

Browse files
committed
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.
1 parent c14de2e commit 5f706cd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎cmd/utils/flags.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ func GetNodeKey(ctx *cli.Context) (key *ecdsa.PrivateKey) {
277277
func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config {
278278
// Set verbosity on glog
279279
glog.SetV(ctx.GlobalInt(VerbosityFlag.Name))
280+
glog.CopyStandardLogTo("INFO")
280281
// Set the log type
281282
//glog.SetToStderr(ctx.GlobalBool(LogToStdErrFlag.Name))
282283
glog.SetToStderr(true)

0 commit comments

Comments
 (0)