From b143222e7ad6b52e1520f80664c1164dde31ce44 Mon Sep 17 00:00:00 2001 From: Matthew Witkowski Date: Thu, 9 Nov 2023 11:15:43 -0500 Subject: [PATCH] Update logging to show success. --- x/trigger/keeper/trigger_dispatcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/trigger/keeper/trigger_dispatcher.go b/x/trigger/keeper/trigger_dispatcher.go index 962f419919..1163d85037 100644 --- a/x/trigger/keeper/trigger_dispatcher.go +++ b/x/trigger/keeper/trigger_dispatcher.go @@ -86,11 +86,11 @@ func (k Keeper) handleMsgs(ctx sdk.Context, msgs []sdk.Msg) ([]sdk.Result, error if err != nil { return nil, fmt.Errorf("error processing message %s at position %d: %w", sdk.MsgTypeURL(msg), i, err) } - k.Logger(ctx).Debug(fmt.Sprintf("Executed %s at position %d and received result: %s", sdk.MsgTypeURL(msg), i, r)) // Handler should always return non-nil sdk.Result. if r == nil { return nil, fmt.Errorf("got nil sdk.Result for message %s at position %d", sdk.MsgTypeURL(msg), i) } + k.Logger(ctx).Debug(fmt.Sprintf("Successfully executed %s at position %d", sdk.MsgTypeURL(msg), i)) results[i] = *r }