Skip to content

Commit

Permalink
chore: add debug log for reduntant relay
Browse files Browse the repository at this point in the history
  • Loading branch information
PanGan21 committed May 18, 2023
1 parent b21014e commit f473963
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/core/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit f473963

Please sign in to comment.