mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
Show only the first 128 bytes of chunks
This commit is contained in:
parent
796b0bf0b6
commit
41c4e97182
1 changed files with 5 additions and 1 deletions
|
|
@ -300,7 +300,11 @@ func (p *Peer) dispatch(msg Msg, protoDone chan struct{}) (wait bool, err error)
|
||||||
// of it and move on to the next message
|
// of it and move on to the next message
|
||||||
buf, err := ioutil.ReadAll(msg.Payload)
|
buf, err := ioutil.ReadAll(msg.Payload)
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
|
if len(buf) < 128 {
|
||||||
p.Debugf("Received message %x", buf)
|
p.Debugf("Received message %x", buf)
|
||||||
|
} else {
|
||||||
|
p.Debugf("Received message %x", buf[:128])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue