mirror of
https://github.com/0glabs/0g-chain.git
synced 2025-04-03 23:36:05 +00:00
chore: improve logging for upgrade handler with plan and version details
This commit is contained in:
parent
80208ed9b7
commit
f61f0da647
@ -52,7 +52,7 @@ func upgradeHandler(
|
|||||||
fromVM module.VersionMap,
|
fromVM module.VersionMap,
|
||||||
) (module.VersionMap, error) {
|
) (module.VersionMap, error) {
|
||||||
logger := app.Logger()
|
logger := app.Logger()
|
||||||
logger.Info(fmt.Sprintf("running %s upgrade handler", name))
|
logger.Info(fmt.Sprintf("Running upgrade handler for %s", name), "plan", plan, "fromVM", fromVM)
|
||||||
|
|
||||||
// Run migrations for all modules and return new consensus version map.
|
// Run migrations for all modules and return new consensus version map.
|
||||||
versionMap, err := app.mm.RunMigrations(ctx, app.configurator, fromVM)
|
versionMap, err := app.mm.RunMigrations(ctx, app.configurator, fromVM)
|
||||||
|
Loading…
Reference in New Issue
Block a user