mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-03 12:03:37 +02:00
Merge pull request #5722 from xanoni/dedupe-pubkey-log-output
server.go: dedupe pubkey output in debug/log msgs
This commit is contained in:
@ -3663,14 +3663,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,
|
||||
|
Reference in New Issue
Block a user