mirror of
https://github.com/lxc/incus.git
synced 2026-02-05 09:46:19 +01:00
client/connection: Add URL to debug logging in ConnectLXDWithContext
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
This commit is contained in:
@@ -84,11 +84,11 @@ func ConnectLXD(url string, args *ConnectionArgs) (InstanceServer, error) {
|
||||
//
|
||||
// Unless the remote server is trusted by the system CA, the remote certificate must be provided (TLSServerCert).
|
||||
func ConnectLXDWithContext(ctx context.Context, url string, args *ConnectionArgs) (InstanceServer, error) {
|
||||
logger.Debug("Connecting to a remote LXD over HTTPS")
|
||||
|
||||
// Cleanup URL
|
||||
url = strings.TrimSuffix(url, "/")
|
||||
|
||||
logger.Debug("Connecting to a remote LXD over HTTPS", logger.Ctx{"url": url})
|
||||
|
||||
return httpsLXD(ctx, url, args)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user