server.go: dedupe pubkey output in debug/log msgs

Default human readable format of NetAddress already contains pubkey:
https://github.com/lightningnetwork/lnd/blob/a329c8061266418bccd797aa5d7d277c736ee930/channeldb/migration/lnwire21/netaddress.go#L38-L47
This commit is contained in:
xanoni committed 2021-09-16 04:25:44 -04:00
1 parent 7d012ae581
commit a17d161e0c
2 files changed
+12 -11

No files matched your search

+2 -3
View File
@@ -3659,14 +3659,13 @@ func (s *server) ConnectToPeer(addr *lnwire.NetAddress,
// connection.
if reqs, ok := s.persistentConnReqs[targetPub]; ok {
srvrLog.Warnf("Already have %d persistent connection "+
"requests for %x@%v, connecting anyway.", len(reqs),
targetPub, addr)
"requests for %v, connecting anyway.", len(reqs), addr)
}
// If there's not already a pending or active connection to this node,
// then instruct the connection manager to attempt to establish a
// persistent connection to the peer.
srvrLog.Debugf("Connecting to %x@%v", targetPub, addr)
srvrLog.Debugf("Connecting to %v", addr)
if perm {
connReq := &connmgr.ConnReq{
Addr: addr,