From 44f2ce666ec9debf8c88daa1e5c66235efcbf063 Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Wed, 23 Oct 2024 18:32:27 +0200 Subject: [PATCH] [relay-client] Log exposed address (#2771) * Log exposed address --- relay/client/client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/relay/client/client.go b/relay/client/client.go index 90bc3ac41..20a73f4b3 100644 --- a/relay/client/client.go +++ b/relay/client/client.go @@ -184,12 +184,14 @@ func (c *Client) Connect() error { return err } + c.log = c.log.WithField("relay", c.instanceURL.String()) + c.log.Infof("relay connection established") + c.serviceIsRunning = true c.wgReadLoop.Add(1) go c.readLoop(c.relayConn) - c.log.Infof("relay connection established") return nil }