From 14c68bcc065e91c1e061de72e9e6a471a40700e8 Mon Sep 17 00:00:00 2001 From: acud <12988138+acud@users.noreply.github.com> Date: Wed, 21 Aug 2024 20:56:17 +0000 Subject: [PATCH 1/2] chore(txs): silence logs (#6278) ## Motivation Reducing log-levels for mempool transaction processing. --- txs/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/txs/handler.go b/txs/handler.go index 223f05b0bb..6646bd5c66 100644 --- a/txs/handler.go +++ b/txs/handler.go @@ -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 } @@ -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), ) From 709b47a1a8b55f11a665a363778446d594b3e90b Mon Sep 17 00:00:00 2001 From: Matthias <5011972+fasmat@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:37:32 +0000 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 871ee4de66..01e71e78db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,12 @@ See [RELEASE](./RELEASE.md) for workflow instructions. ## Release v1.6.8 ### Improvements -* [#6269](https://github.com/spacemeshos/go-spacemesh/pull/6269) Use subquery instead of left join to speed up + +* [#6269](https://github.com/spacemeshos/go-spacemesh/pull/6269) Use sub query instead of left join to speed up. transaction list query +* [#6278](https://github.com/spacemeshos/go-spacemesh/pull/6278) Reduce logging levels of some messages to reduce noise. + ## Release v1.6.7 ### Improvements