diff --git a/protocol/x/delaymsg/keeper/dispatch.go b/protocol/x/delaymsg/keeper/dispatch.go index d48ca90574..9385df1092 100644 --- a/protocol/x/delaymsg/keeper/dispatch.go +++ b/protocol/x/delaymsg/keeper/dispatch.go @@ -51,7 +51,17 @@ func DispatchMessagesForBlock(k types.DelayMsgKeeper, ctx sdk.Context) { events = append(events, res.GetEvents()...) return nil }); err != nil { - k.Logger(ctx).Error("failed to execute delayed message", types.IdLogKey, id, constants.ErrorLogKey, err) + k.Logger(ctx).Error( + "failed to execute delayed message", + types.IdLogKey, + id, + constants.ErrorLogKey, + err, + types.MessageContentLogKey, + msg.String(), + types.MessageTypeUrlLogKey, + delayedMsg.Msg.TypeUrl, + ) } } diff --git a/protocol/x/delaymsg/types/keys.go b/protocol/x/delaymsg/types/keys.go index 8664648008..1677a21e10 100644 --- a/protocol/x/delaymsg/types/keys.go +++ b/protocol/x/delaymsg/types/keys.go @@ -23,5 +23,7 @@ const ( // Log const ( - IdLogKey = "id" + IdLogKey = "id" + MessageContentLogKey = "message_content" + MessageTypeUrlLogKey = "message_type_url" )