aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover/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/discover/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/discover/udp.go')
-rw-r--r--p2p/discover/udp.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/p2p/discover/udp.go b/p2p/discover/udp.go
index e09c63ffb..ae7f97029 100644
--- a/p2p/discover/udp.go
+++ b/p2p/discover/udp.go
@@ -464,7 +464,7 @@ func (t *udp) send(toaddr *net.UDPAddr, ptype byte, req interface{}) error {
if err != nil {
return err
}
- glog.V(logger.Detail).Infof(">>> %v %T\n", toaddr, req)
+ glog.V(logger.Detail).Infof(">>> %v %T", toaddr, req)
if _, err = t.conn.WriteToUDP(packet, toaddr); err != nil {
glog.V(logger.Detail).Infoln("UDP send failed:", err)
}
@@ -518,14 +518,14 @@ func (t *udp) readLoop() {
func (t *udp) handlePacket(from *net.UDPAddr, buf []byte) error {
packet, fromID, hash, err := decodePacket(buf)
if 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)
return err
}
status := "ok"
if err = packet.handle(t, from, fromID, hash); err != nil {
status = err.Error()
}
- glog.V(logger.Detail).Infof("<<< %v %T: %s\n", from, packet, status)
+ glog.V(logger.Detail).Infof("<<< %v %T: %s", from, packet, status)
return err
}