From 9682ed65294f143b0e6e5647be39c979ff80a73a Mon Sep 17 00:00:00 2001 From: Andreas Linde Date: Sun, 11 Dec 2022 12:39:25 +0100 Subject: [PATCH] Some logging fixes --- service/hub.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/service/hub.go b/service/hub.go index ae5e39b3..359c3e20 100644 --- a/service/hub.go +++ b/service/hub.go @@ -358,7 +358,7 @@ func (h *connectionsHub) connectFoundService(remoteService *ServiceDetails, host return nil } - logging.Log.Debugf("initiating connection to %s at %s:%s", remoteService.SKI, host, port) + logging.Log.Debugf("initiating connection to %s at %s:%s", remoteService.SKI(), host, port) dialer := &websocket.Dialer{ Proxy: http.ProxyFromEnvironment, @@ -596,14 +596,14 @@ func (h *connectionsHub) coordinateConnectionInitations(ski string, entry MdnsEn func (h *connectionsHub) initateConnection(remoteService *ServiceDetails, entry MdnsEntry) bool { var err error - logging.Log.Debug("trying to connect to", remoteService.SKI, "at", entry.Host) + logging.Log.Debug("trying to connect to", remoteService.SKI(), "at", entry.Host) if err = h.connectFoundService(remoteService, entry.Host, strconv.Itoa(entry.Port)); err != nil { - logging.Log.Debugf("connection to %s failed: %s", remoteService.SKI, err) + logging.Log.Debugf("connection to %s failed: %s", remoteService.SKI(), err) // connecting via the host failed, so try all of the provided addresses for _, address := range entry.Addresses { - logging.Log.Debug("trying to connect to", remoteService.SKI, "at", address) + logging.Log.Debug("trying to connect to", remoteService.SKI(), "at", address) if err = h.connectFoundService(remoteService, address.String(), strconv.Itoa(entry.Port)); err != nil { - logging.Log.Debug("connection to", remoteService.SKI, "failed: ", err) + logging.Log.Debug("connection to", remoteService.SKI(), "failed: ", err) } else { break }