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/nat/nat.go | |
parent | b9d48b4a9300b948362787b90cf3fb7ae77636b4 (diff) | |
download | dexon-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar.gz dexon-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.tar.zst dexon-189dee26c6c00074ca8fb3ffd81faaf4bbc6825a.zip |
p2p: remove trailing newlines from log messages
Diffstat (limited to 'p2p/nat/nat.go')
-rw-r--r-- | p2p/nat/nat.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/p2p/nat/nat.go b/p2p/nat/nat.go index f9ba93613..7eb23fa7b 100644 --- a/p2p/nat/nat.go +++ b/p2p/nat/nat.go @@ -102,13 +102,13 @@ func Map(m Interface, c chan struct{}, protocol string, extport, intport int, na refresh := time.NewTimer(mapUpdateInterval) defer func() { refresh.Stop() - glog.V(logger.Debug).Infof("deleting port mapping: %s %d -> %d (%s) using %s\n", protocol, extport, intport, name, m) + glog.V(logger.Debug).Infof("deleting port mapping: %s %d -> %d (%s) using %s", protocol, extport, intport, name, m) m.DeleteMapping(protocol, extport, intport) }() if err := m.AddMapping(protocol, extport, intport, name, mapTimeout); err != nil { - glog.V(logger.Debug).Infof("network port %s:%d could not be mapped: %v\n", protocol, intport, err) + glog.V(logger.Debug).Infof("network port %s:%d could not be mapped: %v", protocol, intport, err) } else { - glog.V(logger.Info).Infof("mapped network port %s:%d -> %d (%s) using %s\n", protocol, extport, intport, name, m) + glog.V(logger.Info).Infof("mapped network port %s:%d -> %d (%s) using %s", protocol, extport, intport, name, m) } for { select { @@ -117,9 +117,9 @@ func Map(m Interface, c chan struct{}, protocol string, extport, intport int, na return } case <-refresh.C: - glog.V(logger.Detail).Infof("refresh port mapping %s:%d -> %d (%s) using %s\n", protocol, extport, intport, name, m) + glog.V(logger.Detail).Infof("refresh port mapping %s:%d -> %d (%s) using %s", protocol, extport, intport, name, m) if err := m.AddMapping(protocol, extport, intport, name, mapTimeout); err != nil { - glog.V(logger.Debug).Infof("network port %s:%d could not be mapped: %v\n", protocol, intport, err) + glog.V(logger.Debug).Infof("network port %s:%d could not be mapped: %v", protocol, intport, err) } refresh.Reset(mapUpdateInterval) } |