Skip to content

Commit

Permalink
Only log every 100th block
Browse files Browse the repository at this point in the history
  • Loading branch information
ineiti committed Feb 28, 2024
1 parent b55b9d8 commit debe119
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/ordering/cosipbft/blockstore/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ func (s *InDisk) Load() error {
s.last = link
s.indices[link.GetBlock().GetHash()] = link.GetBlock().GetIndex()

dela.Logger.Info().Msgf("Loaded %d blocks", s.length)
if s.length%100 == 0 {
dela.Logger.Info().Msgf("Loaded %d blocks", s.length)
}
return nil
})

Expand Down

0 comments on commit debe119

Please sign in to comment.