diff --git a/ethereum/broadcast.go b/ethereum/broadcast.go index acd54e9..b752a14 100644 --- a/ethereum/broadcast.go +++ b/ethereum/broadcast.go @@ -143,7 +143,7 @@ func (e *Ethereum) attemptBroadcast( response, nonceErr := messageTransmitter.UsedNonces(co, [32]byte(crypto.Keccak256(key))) if nonceErr != nil { - logger.Debug("Error querying whether nonce was used. Continuing...") + logger.Debug("Error querying whether nonce was used. Continuing...", "error:", nonceErr) } else { fmt.Printf("received used nonce response: %d\n", response) if response.Uint64() == uint64(1) { @@ -164,14 +164,9 @@ func (e *Ethereum) attemptBroadcast( if err == nil { msg.Status = types.Complete - fullLog, err := tx.MarshalJSON() - if err != nil { - logger.Error("error marshalling eth tx log", err) - } - msg.DestTxHash = tx.Hash().Hex() - logger.Info(fmt.Sprintf("Successfully broadcast %s to Ethereum. Tx hash: %s, FULL LOG: %s", msg.SourceTxHash, msg.DestTxHash, string(fullLog))) + logger.Info(fmt.Sprintf("Successfully broadcast %s to Ethereum. Tx hash: %s", msg.SourceTxHash, msg.DestTxHash)) return nil } diff --git a/noble/listener.go b/noble/listener.go index 645e42d..58ff869 100644 --- a/noble/listener.go +++ b/noble/listener.go @@ -95,7 +95,7 @@ func (n *Noble) StartListener( block := <-blockQueue res, err := n.cc.RPCClient.TxSearch(ctx, fmt.Sprintf("tx.height=%d", block), false, nil, nil, "") if err != nil { - logger.Debug(fmt.Sprintf("unable to query Noble block %d", block)) + logger.Debug(fmt.Sprintf("unable to query Noble block %d", block), "error:", err) blockQueue <- block }