From 6be18a1cb487b1a84b78c52c8e6e28ad318c799a Mon Sep 17 00:00:00 2001 From: yihuang Date: Thu, 17 Jun 2021 00:27:50 +0800 Subject: [PATCH] cmd: include go-ethereum's log to stdout (#134) fixes #133 --- cmd/ethermintd/start.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/ethermintd/start.go b/cmd/ethermintd/start.go index 8c496b9e..5156cd56 100644 --- a/cmd/ethermintd/start.go +++ b/cmd/ethermintd/start.go @@ -37,6 +37,7 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" + ethlog "github.com/ethereum/go-ethereum/log" ethrpc "github.com/ethereum/go-ethereum/rpc" "github.com/cosmos/ethermint/cmd/ethermintd/config" @@ -236,6 +237,7 @@ func startInProcess(ctx *server.Context, clientCtx client.Context, appCreator ty var httpSrvDone = make(chan struct{}, 1) var wsSrv rpc.WebsocketsServer + ethlog.Root().SetHandler(ethlog.StdoutHandler) if config.EVMRPC.Enable { tmEndpoint := "/websocket" tmRPCAddr := cfg.RPC.ListenAddress