Skip to content

Commit 7569b8f

Browse files
committed
remove raw data log
1 parent a976527 commit 7569b8f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

p2p/discover/v5_udp.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import (
3030
"sync"
3131
"time"
3232

33-
"github.com/ethereum/go-ethereum/common/hexutil"
3433
"github.com/ethereum/go-ethereum/common/mclock"
3534
"github.com/ethereum/go-ethereum/log"
3635
"github.com/ethereum/go-ethereum/p2p/discover/v5wire"
@@ -764,7 +763,6 @@ func (t *UDPv5) send(toID enode.ID, toAddr netip.AddrPort, packet v5wire.Packet,
764763
t.log.Warn(">> "+packet.Name(), t.logcontext...)
765764
return nonce, err
766765
}
767-
t.logcontext = append(t.logcontext, "rawpacket", hexutil.Encode(enc))
768766
_, err = t.conn.WriteToUDPAddrPort(enc, toAddr)
769767
t.log.Trace(">> "+packet.Name(), t.logcontext...)
770768
return nonce, err
@@ -809,7 +807,6 @@ func (t *UDPv5) dispatchReadPacket(from netip.AddrPort, content []byte) bool {
809807
// handlePacket decodes and processes an incoming packet from the network.
810808
func (t *UDPv5) handlePacket(rawpacket []byte, fromAddr netip.AddrPort) error {
811809
addr := fromAddr.String()
812-
t.log.Trace("<< "+addr, "rawPacket", hexutil.Encode(rawpacket))
813810
fromID, fromNode, packet, err := t.codec.Decode(rawpacket, addr)
814811
if err != nil {
815812
if t.unhandled != nil && v5wire.IsInvalidHeader(err) {

0 commit comments

Comments
 (0)