Skip to content

Commit

Permalink
log new proposals and ballots on debug
Browse files Browse the repository at this point in the history
  • Loading branch information
poszu committed Jul 12, 2024
1 parent 0f79ef5 commit 6e1ddf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions config/mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions proposals/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6e1ddf6

Please sign in to comment.