forked from cerc-io/ipld-eth-server
Add subCommand name to log fields
This commit is contained in:
+2
-2
@@ -150,11 +150,11 @@ func initConfig() {
|
||||
}
|
||||
}
|
||||
|
||||
func getBlockChain() *geth.BlockChain {
|
||||
func getBlockChain(subCommand string) *geth.BlockChain {
|
||||
rawRpcClient, err := rpc.Dial(ipc)
|
||||
|
||||
if err != nil {
|
||||
log.Fatal("Could not dial client: ", err)
|
||||
log.WithField("subCommand", subCommand).Fatal(err)
|
||||
}
|
||||
rpcClient := client.NewRpcClient(rawRpcClient, ipc)
|
||||
ethClient := ethclient.NewClient(rawRpcClient)
|
||||
|
||||
Reference in New Issue
Block a user