diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-02-21 01:41:54 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-02-23 18:00:04 +0800 |
commit | 189dee26c6c00074ca8fb3ffd81faaf4bbc6825a (patch) | |
tree | d732d1a152e1a49d21344fc44c74d50b21752dc5 /p2p/discv5 | |
parent | b9d48b4a9300b948362787b90cf3fb7ae77636b4 (diff) | |
download | dexon-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar dexon-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar.gz dexon-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar.bz2 dexon-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar.lz dexon-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar.xz dexon-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar.zst dexon-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.zip |
p2p: remove trailing newlines from log messages
Diffstat (limited to 'p2p/discv5')
-rw-r--r-- | p2p/discv5/udp.go | 4 |
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 } |