From 6e1ddf6961d9c6ea344377c2f5b7b0ad643ee408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20R=C3=B3=C5=BCa=C5=84ski?= Date: Fri, 12 Jul 2024 11:51:33 +0200 Subject: [PATCH] log new proposals and ballots on debug --- config/mainnet.go | 2 -- proposals/handler.go | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/mainnet.go b/config/mainnet.go index 6e6517598d..8bd0effac4 100644 --- a/config/mainnet.go +++ b/config/mainnet.go @@ -60,8 +60,6 @@ func MainnetConfig() Config { logging := DefaultLoggingConfig() logging.TrtlLoggerLevel = zapcore.WarnLevel.String() logging.MeshLoggerLevel = zapcore.WarnLevel.String() - logging.AtxHandlerLevel = zapcore.InfoLevel.String() - logging.ProposalListenerLevel = zapcore.InfoLevel.String() hare3conf := hare3.DefaultConfig() hare3conf.Committee = 400 hare3conf.Enable = true diff --git a/proposals/handler.go b/proposals/handler.go index 8109d8d9eb..eafb40f81a 100644 --- a/proposals/handler.go +++ b/proposals/handler.go @@ -344,7 +344,7 @@ func (h *Handler) handleProposal(ctx context.Context, expHash types.Hash32, peer known.Inc() return fmt.Errorf("%w proposal %s", errKnownProposal, p.ID()) } - logger.With().Info("new proposal", log.ShortStringer("exp hash", expHash), log.Int("num_txs", len(p.TxIDs))) + logger.With().Debug("new proposal", log.ShortStringer("exp hash", expHash), log.Int("num_txs", len(p.TxIDs))) t2 := time.Now() h.fetcher.RegisterPeerHashes(peer, collectHashes(p)) @@ -438,7 +438,7 @@ func (h *Handler) processBallot(ctx context.Context, logger log.Log, b *types.Ba return nil, fmt.Errorf("%w: ballot %s", errKnownBallot, b.ID()) } - logger.With().Info("new ballot", log.Inline(b)) + logger.With().Debug("new ballot", log.Inline(b)) decoded, err := h.checkBallotSyntacticValidity(ctx, logger, b) if err != nil {