From 5be6993a56d719f1dfb87235007b8eb5df12ec21 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Fri, 29 Jun 2018 17:22:03 -0700 Subject: [PATCH] server: log pubkey hex in connection callbacks --- server.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server.go b/server.go index 739d6d3eb..12ccf2fcd 100644 --- a/server.go +++ b/server.go @@ -1948,8 +1948,9 @@ func (s *server) InboundPeerConnected(conn net.Conn) { // If we already have an outbound connection to this peer, then ignore // this new connection. if _, ok := s.outboundPeers[pubStr]; ok { - srvrLog.Debugf("Already have outbound connection for %v, "+ - "ignoring inbound connection", nodePub.SerializeCompressed()) + srvrLog.Debugf("Already have outbound connection for %x, "+ + "ignoring inbound connection", + nodePub.SerializeCompressed()) conn.Close() 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 // this new connection. 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", nodePub.SerializeCompressed())