From 420a11f7853d87f2922dfae3df3da3c58db08500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Tue, 29 Oct 2024 17:15:28 +0100 Subject: [PATCH] Add log --- relay/client/manager.go | 1 + relay/client/picker.go | 1 + 2 files changed, 2 insertions(+) diff --git a/relay/client/manager.go b/relay/client/manager.go index 542254ba9..c29d61fcb 100644 --- a/relay/client/manager.go +++ b/relay/client/manager.go @@ -213,6 +213,7 @@ func (m *Manager) HasRelayAddress() bool { } func (m *Manager) UpdateServerURLs(serverURLs []string) { + log.Infof("update relay server URLs: %v", serverURLs) m.serverPicker.ServerURLs.Store(serverURLs) } diff --git a/relay/client/picker.go b/relay/client/picker.go index db05fe856..eb5062dbb 100644 --- a/relay/client/picker.go +++ b/relay/client/picker.go @@ -42,6 +42,7 @@ func (sp *ServerPicker) PickServer(parentCtx context.Context) (*Client, error) { successChan := make(chan connResult, 1) concurrentLimiter := make(chan struct{}, maxConcurrentServers) + log.Debugf("pick server from list: %v", sp.ServerURLs.Load().([]string)) for _, url := range sp.ServerURLs.Load().([]string) { // todo check if we have a successful connection so we do not need to connect to other servers concurrentLimiter <- struct{}{}