server: log pubkey hex in connection callbacks
This commit is contained in:
parent
9205720bea
commit
5be6993a56
|
@ -1948,8 +1948,9 @@ func (s *server) InboundPeerConnected(conn net.Conn) {
|
||||||
// If we already have an outbound connection to this peer, then ignore
|
// If we already have an outbound connection to this peer, then ignore
|
||||||
// this new connection.
|
// this new connection.
|
||||||
if _, ok := s.outboundPeers[pubStr]; ok {
|
if _, ok := s.outboundPeers[pubStr]; ok {
|
||||||
srvrLog.Debugf("Already have outbound connection for %v, "+
|
srvrLog.Debugf("Already have outbound connection for %x, "+
|
||||||
"ignoring inbound connection", nodePub.SerializeCompressed())
|
"ignoring inbound connection",
|
||||||
|
nodePub.SerializeCompressed())
|
||||||
|
|
||||||
conn.Close()
|
conn.Close()
|
||||||
return
|
return
|
||||||
|
@ -2030,7 +2031,7 @@ func (s *server) OutboundPeerConnected(connReq *connmgr.ConnReq, conn net.Conn)
|
||||||
// If we already have an inbound connection to this peer, then ignore
|
// If we already have an inbound connection to this peer, then ignore
|
||||||
// this new connection.
|
// this new connection.
|
||||||
if _, ok := s.inboundPeers[pubStr]; ok {
|
if _, ok := s.inboundPeers[pubStr]; ok {
|
||||||
srvrLog.Debugf("Already have inbound connection for %v, "+
|
srvrLog.Debugf("Already have inbound connection for %x, "+
|
||||||
"ignoring outbound connection",
|
"ignoring outbound connection",
|
||||||
nodePub.SerializeCompressed())
|
nodePub.SerializeCompressed())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user