From 35747394b7dec41949e5bb26a56a2bd2f2844be1 Mon Sep 17 00:00:00 2001 From: Milap Sheth Date: Tue, 29 Nov 2022 10:23:16 -0500 Subject: [PATCH] chore: improve migration log msg (#1842) (#1845) --- x/evm/keeper/migrate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/evm/keeper/migrate.go b/x/evm/keeper/migrate.go index 7f8d4f7fb..d556627e0 100644 --- a/x/evm/keeper/migrate.go +++ b/x/evm/keeper/migrate.go @@ -35,12 +35,12 @@ func Migrate6To7(k *BaseKeeper, n types.Nexus) func(ctx sdk.Context) error { iterCmd.UnmarshalValue(&cmd) if err := migrateCmdType(ctx, ck, key.FromBz(iterCmd.Key()), cmd); err != nil { invalidCmds++ - ck.Logger(ctx).Debug(fmt.Sprintf("chain %s: failed to migrate command type for command %s", chain.String(), funcs.Must(json.Marshal(cmd)))) + ck.Logger(ctx).Debug(fmt.Sprintf("chain %s: found legacy command %s", chain.String(), funcs.Must(json.Marshal(cmd)))) continue } } - ck.Logger(ctx).Info(fmt.Sprintf("command type migration complete. Total migrated: %d, failed: %d", totalCmds, invalidCmds)) + ck.Logger(ctx).Info(fmt.Sprintf("command type migration complete for chain %s. Total migrated: %d, legacy: %d", chain.String(), totalCmds, invalidCmds)) } return nil