Added logs.

pull/4455/head
frozen 1 year ago
parent 2f23d81879
commit fad17fe539
No known key found for this signature in database
GPG Key ID: 5391C63E79B03EDE
  1. 8
      api/service/stagedstreamsync/syncing.go

@ -248,8 +248,14 @@ func (s *StagedStreamSync) doSync(downloaderContext context.Context, initSync bo
for {
ctx, cancel := context.WithCancel(downloaderContext)
started := s.bc.CurrentHeader().NumberU64()
n, err := s.doSyncCycle(ctx, initSync)
finished := s.bc.CurrentHeader().NumberU64()
utils.Logger().Info().
Uint64("from", started).
Int("returned", n).
Uint64("to", finished).
Msg(WrapStagedSyncMsg("synced blocks"))
if err != nil {
utils.Logger().Error().
Err(err).

Loading…
Cancel
Save