diff --git a/x/consensus/keeper/attest.go b/x/consensus/keeper/attest.go index da84d041..97023b88 100644 --- a/x/consensus/keeper/attest.go +++ b/x/consensus/keeper/attest.go @@ -1,8 +1,6 @@ package keeper import ( - "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -26,7 +24,6 @@ func (k Keeper) CheckAndProcessAttestedMessages(ctx sdk.Context) error { "check-and-process-attested-messages-queue", "id", msg.GetId(), "nonce", msg.Nonce(), - "string", fmt.Sprintf("+%v", msg), ) cq, err := k.getConsensusQueue(ctx, opt.QueueTypeName) if err != nil { diff --git a/x/consensus/types/consensus.go b/x/consensus/types/consensus.go index a5f0ceca..ed26cadc 100644 --- a/x/consensus/types/consensus.go +++ b/x/consensus/types/consensus.go @@ -8,7 +8,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/gogoproto/proto" xchain "github.com/palomachain/paloma/internal/x-chain" - "gopkg.in/yaml.v2" ) type ConsensusQueueType string @@ -63,8 +62,11 @@ type MessageQueuedForBatchingI interface { var _ MessageQueuedForBatchingI = &BatchOfConsensusMessages{} func (q *QueuedSignedMessage) String() string { - out, _ := yaml.Marshal(q) - return string(out) + if q == nil { + return "" + } + + return fmt.Sprintf("%+v", *q) } func (q *QueuedSignedMessage) AddSignData(data *SignData) {