New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More verbose output on init-sync #7578
Conversation
…into init-sync-more-logs
@@ -112,7 +112,7 @@ func (s *Service) processFetchedData( | |||
|
|||
// Use Batch Block Verify to process and verify batches directly. | |||
if err := s.processBatchedBlocks(ctx, genesis, data.blocks, s.chain.ReceiveBlockBatch); err != nil { | |||
log.WithError(err).Debug("Batch is not processed") | |||
log.WithError(err).Warn("Batch is not processed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you remove WithError
it prints the whole stack trace which can get very noisy. We just want to print the main error
@@ -124,7 +124,9 @@ func (s *Service) processFetchedDataRegSync( | |||
blockReceiver := s.chain.ReceiveBlock | |||
for _, blk := range data.blocks { | |||
if err := s.processBlock(ctx, genesis, blk, blockReceiver); err != nil { | |||
log.WithError(err).Debug("Block is not processed") | |||
log.WithError(err).WithFields(logrus.Fields{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here lets remove WithError
Codecov Report
@@ Coverage Diff @@
## master #7578 +/- ##
==========================================
+ Coverage 61.64% 61.66% +0.01%
==========================================
Files 423 423
Lines 29613 29622 +9
==========================================
+ Hits 18256 18265 +9
+ Misses 8439 8433 -6
- Partials 2918 2924 +6 |
What type of PR is this?
What does this PR do? Why is it needed?
Which issues(s) does this PR fix?
N/A
Other notes for review