Skip to content

Commit a5e8038

Browse files
committed
debug logs
1 parent 272d9c6 commit a5e8038

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

insight

-1.59 MB
Binary file not shown.

internal/publisher/publisher.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"crypto/tls"
66
"encoding/json"
77
"fmt"
8+
"math/rand/v2"
89
"net"
910
"strings"
1011
"sync"
@@ -97,6 +98,9 @@ func (p *Publisher) initialize() error {
9798
}
9899

99100
func (p *Publisher) PublishBlockData(blockData []common.BlockData) error {
101+
if rand.Float32() < 0.3 {
102+
log.Debug().Msgf("Publishing %d block data", len(blockData))
103+
}
100104
return p.publishBlockData(blockData, false)
101105
}
102106

0 commit comments

Comments
 (0)