Skip to content

Commit 0a4cc75

Browse files
committed
use info logging
1 parent a188c37 commit 0a4cc75

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cmd/consensus/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ func main() {
209209
if err := operation.RetryOnConflict(nodeBuilder.SecretsDB.Update, operation.MigrateDKGEndStateFromV1(log)); err != nil {
210210
return fmt.Errorf("could not migrate DKG end state from v1 to v2: %w", err)
211211
}
212-
log.Debug().Msgf("completed migrating DKG end state from v1 to v2")
213212
return nil
214213
}).
215214
Module("machine account config", func(node *cmd.NodeConfig) error {

storage/badger/operation/dkg.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func MigrateDKGEndStateFromV1(log zerolog.Logger) func(txn *badger.Txn) error {
111111
ops = append(ops,
112112
UpsertDKGStateForEpoch(epochCounter, newState),
113113
remove(makePrefix(codeDKGEndState, epochCounter)))
114-
log.Debug().Msgf("removing %d->%d, writing %d->%d", epochCounter, oldState, epochCounter, newState)
114+
log.Info().Msgf("removing %d->%d, writing %d->%d", epochCounter, oldState, epochCounter, newState)
115115

116116
return nil
117117
}
@@ -126,6 +126,9 @@ func MigrateDKGEndStateFromV1(log zerolog.Logger) func(txn *badger.Txn) error {
126126
return fmt.Errorf("aborting conversion from DKG end states: %w", err)
127127
}
128128
}
129+
if len(ops) > 0 {
130+
log.Info().Msgf("finished migrating %d DKG end states", len(ops))
131+
}
129132
return nil
130133
}
131134
}

0 commit comments

Comments
 (0)