From f473963d1e027b2420d0f6ff4bc4fb5bb707822c Mon Sep 17 00:00:00 2001 From: PanGan21 Date: Thu, 18 May 2023 13:30:00 +0200 Subject: [PATCH] chore: add debug log for reduntant relay --- modules/core/keeper/msg_server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/core/keeper/msg_server.go b/modules/core/keeper/msg_server.go index 2db84fcdb66..f9c77c3fc7f 100644 --- a/modules/core/keeper/msg_server.go +++ b/modules/core/keeper/msg_server.go @@ -442,6 +442,7 @@ func (k Keeper) RecvPacket(goCtx context.Context, msg *channeltypes.MsgRecvPacke writeFn() case channeltypes.ErrNoOpMsg: // no-ops do not need event emission as they will be ignored + ctx.Logger().Debug("reduntant relay no-ops", "port-id", msg.Packet.SourcePort, "channel-id", msg.Packet.SourceChannel) return &channeltypes.MsgRecvPacketResponse{Result: channeltypes.NOOP}, nil default: ctx.Logger().Error("receive packet failed", "port-id", msg.Packet.SourcePort, "channel-id", msg.Packet.SourceChannel, "error", errorsmod.Wrap(err, "receive packet verification failed"))