Added some more numbers to interesting logs in bootstrapping

This commit is contained in:
StephenButtolph 2020-06-23 21:07:35 -04:00
parent 1f01d43102
commit 63ea29064d
2 changed files with 6 additions and 2 deletions

View File

@ -283,7 +283,8 @@ func (b *bootstrapper) finish() error {
if b.finished || b.outstandingRequests.Len() > 0 || b.needToFetch.Len() > 0 {
return nil
}
b.BootstrapConfig.Context.Log.Info("finished fetching vertices. executing transaction state transitions...")
b.BootstrapConfig.Context.Log.Info("finished fetching %d vertices. executing transaction state transitions...",
b.numFetched)
if err := b.executeAll(b.TxBlocked, b.numBSBlockedTx); err != nil {
return err
@ -325,5 +326,6 @@ func (b *bootstrapper) executeAll(jobs *queue.Jobs, numBlocked prometheus.Gauge)
b.BootstrapConfig.Context.Log.Info("executed %d operations", numExecuted)
}
}
b.BootstrapConfig.Context.Log.Info("executed %d operations", numExecuted)
return nil
}

View File

@ -227,7 +227,8 @@ func (b *bootstrapper) finish() error {
if b.finished {
return nil
}
b.BootstrapConfig.Context.Log.Info("bootstrapping finished fetching blocks. executing state transitions...")
b.BootstrapConfig.Context.Log.Info("bootstrapping finished fetching %d blocks. executing state transitions...",
b.numFetched)
if err := b.executeAll(b.Blocked, b.numBlocked); err != nil {
return err
@ -265,5 +266,6 @@ func (b *bootstrapper) executeAll(jobs *queue.Jobs, numBlocked prometheus.Gauge)
b.BootstrapConfig.Context.Log.Info("executed %d blocks", numExecuted)
}
}
b.BootstrapConfig.Context.Log.Info("executed %d blocks", numExecuted)
return nil
}