-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add migration logs #11100
feat: add migration logs #11100
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, left one suggestion.
ctx.Logger().Info(fmt.Sprintf("Running migration for module: %s, InitGenesis (on default genesis) toVersion %d", | ||
moduleName, toVersion)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not using key vals ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ctx.Logger().Info(fmt.Sprintf("Running migration for module: %s, InitGenesis (on default genesis) toVersion %d", | |
moduleName, toVersion)) | |
ctx.Logger().Info(fmt.Sprintf("Adding new module and initializing default genesis", | |
"module", moduleName, "target_version", toVersion)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think running migration makes more sense here. In most cases its a migration and not an add. Maybe we can say Running/Adding but it would be confusing.
Q: why aren't we creating this on master and backporting? |
its already there #10768 |
closing this in favour of #11107. Please use the backport functionality in the future. its easier to track if its on master and easier for you as well |
cool! we just need a backport for gaia next release, I think I based off wrong brach (just get to know how sdk backport from amaurym ). thank you! |
Description
Closes: #11048
Next Gaia release will use cosmos-sdk 0.45, during the cosmoshub upgrade, it is helpful if validator can see the migration logs, so that validators can confirm that the upgrade is still in process.
we can make a backport release of v0.45.1 ?
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change