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:
@@ -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, "/")
|
||||
|
||||
Reference in New Issue
Block a user