Skip to content

Commit

Permalink
Improve log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrvivian committed Apr 24, 2024
1 parent 57a89f6 commit e5bec42
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/spammer/spammer.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (s *Spammer) PrepareBlock(ctx context.Context, issuanceData *models.Payload
}
block, err := s.EvilWallet.CreateBlock(ctx, clt, issuanceData.Payload, issuerAccount, strongParents...)
if err != nil {
//s.logError(ierrors.Wrap(err, ErrFailPostBlock.Error()))
s.LogDebugf("failed at PrepareBlock: %v", ierrors.Wrap(err, ErrFailPostBlock.Error()))
s.ErrCounter.CountError(ierrors.Wrap(err, ErrFailPostBlock.Error()))

return nil
Expand Down Expand Up @@ -287,8 +287,7 @@ func (s *Spammer) PrepareAndPostBlock(ctx context.Context, issuanceData *models.
}

if err != nil {
// for the conflicting spams we will see errors and that's fine, so that's why we are not printing
s.LogDebugf("error: %v", ierrors.Wrap(err, ErrFailPostBlock.Error()))
// for the conflicting spams we will see errors and that's fine, so that's why we are not printing them
s.ErrCounter.CountError(ierrors.Wrap(err, ErrFailPostBlock.Error()))

return iotago.EmptyBlockID
Expand Down

0 comments on commit e5bec42

Please sign in to comment.