Remove hardcoded debug lines

This commit is contained in:
Zoltán Papp 2024-07-10 14:17:50 +02:00
parent d1b6387803
commit 469be3442d

View File

@ -252,6 +252,7 @@ func (c *ConnectClient) run(
if token != nil {
relayManager.UpdateToken(token)
}
log.Infof("connecting to the Relay service %s", relayURL)
if err = relayManager.Serve(); err != nil {
log.Error(err)
return wrapErr(err)
@ -315,12 +316,9 @@ func (c *ConnectClient) run(
func parseRelayInfo(resp *mgmProto.LoginResponse) (string, *hmac.Token) {
// todo remove this
ra := peer.ForcedRelayAddress()
/*
if ra := peer.ForcedRelayAddress(); ra != "" {
return ra, nil
}
*/
msg := resp.GetWiretrusteeConfig().GetRelay()
if msg == nil {
@ -337,9 +335,7 @@ func parseRelayInfo(resp *mgmProto.LoginResponse) (string, *hmac.Token) {
Signature: msg.GetTokenSignature(),
}
log.Tracef("Relay URL: %s", url)
return ra, token
return url, token
}
func (c *ConnectClient) Engine() *Engine {