Skip to content

Commit 89ff822

Browse files
committed
fix: logging
1 parent e1bb4c2 commit 89ff822

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

p2p/conns.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,10 @@ func (c *Conns) broadcastTxs(txs types.Transactions, hashes []common.Hash, peers
259259

260260
pc := int(count.Load())
261261
if pc > 0 {
262-
log.Debug().Int("peers", pc).Int("txs", len(txs)).Msg("Broadcasted transactions")
262+
log.Info().
263+
Int("peers", pc).
264+
Int("txs", len(txs)).
265+
Msg("Broadcasted transactions")
263266
}
264267

265268
return pc
@@ -286,6 +289,11 @@ func (c *Conns) txBroadcastLoop() {
286289
}
287290

288291
c.broadcastTxs(batch, hashes, peers)
292+
293+
log.Info().
294+
Int("txs", len(batch)).
295+
Int("peers", len(peers)).
296+
Msg("Broadcasted transaction batch")
289297
}
290298
}
291299

0 commit comments

Comments
 (0)