cmd: include go-ethereum's log to stdout (#134)

fixes #133
This commit is contained in:
yihuang 2021-06-17 00:27:50 +08:00 committed by GitHub
parent 14d0f1f92d
commit 6be18a1cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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