1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

client/connection: Log simplestreams URL in ConnectSimpleStreams

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
This commit is contained in:
Thomas Parrott
2021-07-22 14:19:39 +01:00
parent 9e3d93c727
commit a731d98447

View File

@@ -13,6 +13,7 @@ import (
"gopkg.in/macaroon-bakery.v2/httpbakery"
"github.com/lxc/lxd/shared"
log "github.com/lxc/lxd/shared/log15"
"github.com/lxc/lxd/shared/logger"
"github.com/lxc/lxd/shared/simplestreams"
)
@@ -184,7 +185,7 @@ func ConnectPublicLXD(url string, args *ConnectionArgs) (ImageServer, error) {
//
// Unless the remote server is trusted by the system CA, the remote certificate must be provided (TLSServerCert).
func ConnectSimpleStreams(url string, args *ConnectionArgs) (ImageServer, error) {
logger.Debugf("Connecting to a remote simplestreams server")
logger.Debug("Connecting to a remote simplestreams server", log.Ctx{"URL": url})
// Cleanup URL
url = strings.TrimSuffix(url, "/")