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/discover | |
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/discover')
-rw-r--r-- | p2p/discover/udp.go | 6 |
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 } |