Skip to content

Commit

Permalink
chore: improve migration log msg (#1842) (#1845)
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth authored Nov 29, 2022
1 parent 0f27fea commit 3574739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/evm/keeper/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3574739

Please sign in to comment.