Skip to content

Commit

Permalink
Additional logging correlation (some logs were a bit ambiguous).
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Dec 6, 2024
1 parent 7f82935 commit b57fa5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions process/sync/baseSync.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,8 @@ func (boot *baseBootstrap) syncBlock() error {
err = boot.blockProcessor.ProcessBlock(header, body, haveTime)
elapsedTime := time.Since(startProcessBlockTime)
log.Debug("elapsed time to process block",
"round", header.GetRound(),
"nonce", header.GetNonce(),
"time [s]", elapsedTime,
)
if err != nil {
Expand All @@ -662,6 +664,8 @@ func (boot *baseBootstrap) syncBlock() error {
err = boot.blockProcessor.ProcessScheduledBlock(header, body, haveTime)
elapsedTime = time.Since(startProcessScheduledBlockTime)
log.Debug("elapsed time to process scheduled block",
"round", header.GetRound(),
"nonce", header.GetNonce(),
"time [s]", elapsedTime,
)
if err != nil {
Expand All @@ -675,6 +679,8 @@ func (boot *baseBootstrap) syncBlock() error {
log.Warn("syncBlock.CommitBlock", "elapsed time", elapsedTime)
} else {
log.Debug("elapsed time to commit block",
"round", header.GetRound(),
"nonce", header.GetNonce(),
"time [s]", elapsedTime,
)
}
Expand Down

0 comments on commit b57fa5a

Please sign in to comment.