aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discv5/udp.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-21 01:41:54 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-02-23 18:00:04 +0800
commit189dee26c6c00074ca8fb3ffd81faaf4bbc6825a (patch)
treed732d1a152e1a49d21344fc44c74d50b21752dc5 /p2p/discv5/udp.go
parentb9d48b4a9300b948362787b90cf3fb7ae77636b4 (diff)
downloadgo-tangerine-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar
go-tangerine-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar.gz
go-tangerine-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar.bz2
go-tangerine-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar.lz
go-tangerine-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar.xz
go-tangerine-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar.zst
go-tangerine-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.zip
p2p: remove trailing newlines from log messages
Diffstat (limited to 'p2p/discv5/udp.go')
-rw-r--r--p2p/discv5/udp.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/discv5/udp.go b/p2p/discv5/udp.go
index b43f6d198..6cf6cfbcc 100644
--- a/p2p/discv5/udp.go
+++ b/p2p/discv5/udp.go
@@ -348,7 +348,7 @@ func (t *udp) sendPacket(toid NodeID, toaddr *net.UDPAddr, ptype byte, req inter
//fmt.Println(err)
return hash, err
}
- glog.V(logger.Detail).Infof(">>> %v to %x@%v\n", nodeEvent(ptype), toid[:8], toaddr)
+ glog.V(logger.Detail).Infof(">>> %v to %x@%v", nodeEvent(ptype), toid[:8], toaddr)
if _, err = t.conn.WriteToUDP(packet, toaddr); err != nil {
glog.V(logger.Detail).Infoln("UDP send failed:", err)
}
@@ -407,7 +407,7 @@ func (t *udp) readLoop() {
func (t *udp) handlePacket(from *net.UDPAddr, buf []byte) error {
pkt := ingressPacket{remoteAddr: from}
if err := decodePacket(buf, &pkt); err != nil {
- glog.V(logger.Debug).Infof("Bad packet from %v: %v\n", from, err)
+ glog.V(logger.Debug).Infof("Bad packet from %v: %v", from, err)
//fmt.Println("bad packet", err)
return err
}