Skip to content

Commit 3e1c631

Browse files
committed
chore: reduce logging verbosity
1 parent 5bad693 commit 3e1c631

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

cmd/p2p/sensor/rpc.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,11 @@ func handleRPC(conns *p2p.Conns, networkID uint64) {
142142
if len(txs) > 0 {
143143
go func(txs types.Transactions) {
144144
hash := txs[0].Hash().Hex()
145-
log.Info().Str("hash", hash).Msg("Broadcasting transaction")
146145
count := params.conns.BroadcastTxsAlways(txs)
147-
log.Info().Str("hash", hash).Int("peers", count).Msg("Transaction broadcast complete")
146+
log.Debug().
147+
Str("hash", hash).
148+
Int("peers", count).
149+
Msg("Broadcasted transaction")
148150
}(txs)
149151
}
150152

@@ -294,9 +296,11 @@ func handleBatchRequest(w http.ResponseWriter, r *http.Request, body []byte, par
294296
// Broadcast transactions asynchronously to avoid blocking the RPC response
295297
if len(txs) > 0 {
296298
go func(txs types.Transactions) {
297-
log.Info().Int("txs", len(txs)).Msg("Broadcasting batch of transactions")
298299
count := params.conns.BroadcastTxsAlways(txs)
299-
log.Info().Int("txs", len(txs)).Int("peers", count).Msg("Batch broadcast complete")
300+
log.Debug().
301+
Int("txs", len(txs)).
302+
Int("peers", count).
303+
Msg("Broadcasted transaction batch")
300304
}(txs)
301305
}
302306

0 commit comments

Comments
 (0)