Skip to content

Commit fe3b6df

Browse files
authored
chore: more trace logs (#2617)
Make more logs trace level to reduce the noise
1 parent 1969636 commit fe3b6df

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

consensus/state.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ func (cs *State) enterPropose(height int64, round int32) {
13121312

13131313
// if not a validator, we're done
13141314
if !cs.rs.Validators.HasAddress(address) {
1315-
logger.Debug("node is not a validator", "addr", address, "vals", cs.rs.Validators)
1315+
logger.Trace("node is not a validator", "addr", address, "vals", cs.rs.Validators)
13161316
return
13171317
}
13181318

@@ -1628,7 +1628,7 @@ func (cs *State) enterPrecommit(height int64, round int32) {
16281628
}
16291629

16301630
if ready, waitTime := cs.isReadyToPrecommit(); !ready {
1631-
logger.Debug("rescheduling precommit", "delay(ms)", waitTime.Milliseconds())
1631+
logger.Trace("rescheduling precommit", "delay(ms)", waitTime.Milliseconds())
16321632
cs.scheduleTimeout(waitTime, height, round, cstypes.RoundStepPrevoteWait)
16331633
return
16341634
}

mempool/cat/reactor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ func (memR *Reactor) broadcastNewTx(wtx *wrappedTx) {
460460

461461
// broadcastSeenTxWithHeight is a helper that broadcasts a SeenTx message with height checking.
462462
func (memR *Reactor) broadcastSeenTxWithHeight(txKey types.TxKey, height int64, signer []byte, sequence uint64) {
463-
memR.Logger.Debug("broadcasting seen tx to limited peers", "tx_key", string(txKey[:]))
463+
memR.Logger.Debug("broadcasting seen tx to limited peers", "tx_key", txKey.String())
464464
msg := &protomem.Message{
465465
Sum: &protomem.Message_SeenTx{
466466
SeenTx: &protomem.SeenTx{

p2p/pex/pex_reactor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,9 @@ func (r *Reactor) ensurePeers(ensurePeersPeriodElapsed bool) {
502502
if err != nil {
503503
switch err.(type) {
504504
case errMaxAttemptsToDial, errTooEarlyToDial:
505-
r.Logger.Debug(err.Error(), "addr", addr)
505+
r.Logger.Trace(err.Error(), "addr", addr)
506506
default:
507-
r.Logger.Debug(err.Error(), "addr", addr)
507+
r.Logger.Trace(err.Error(), "addr", addr)
508508
}
509509
}
510510
}(addr)

0 commit comments

Comments
 (0)