Skip to content

Commit

Permalink
chore(txs): silence logs (#6278)
Browse files Browse the repository at this point in the history
## Motivation

Reducing log-levels for mempool transaction processing.
  • Loading branch information
acud committed Aug 21, 2024
1 parent 2ba0500 commit af7c327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions txs/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (th *TxHandler) HandleGossipTransaction(ctx context.Context, peer p2p.Peer,
updateMetrics(err, gossipTxCount)
if err != nil {
if !errors.Is(err, errDuplicateTX) {
th.logger.With(log.ZContext(ctx)).Warn("failed to handle tx", zap.Error(err))
th.logger.With(log.ZContext(ctx)).Debug("failed to handle tx", zap.Error(err))
}
return err
}
Expand Down Expand Up @@ -122,7 +122,7 @@ func (th *TxHandler) verifyAndCache(ctx context.Context, expHash types.Hash32, m
return fmt.Errorf("%w: %s", errVerify, raw.ID)
}
if err := th.state.AddToCache(ctx, tx, time.Now()); err != nil {
th.logger.With(log.ZContext(ctx)).Warn("failed to add tx to conservative cache",
th.logger.With(log.ZContext(ctx)).Debug("failed to add tx to conservative cache",
zap.Stringer("tx_id", raw.ID),
zap.Error(err),
)
Expand Down

0 comments on commit af7c327

Please sign in to comment.