diff --git a/azuredevops/client.go b/azuredevops/client.go index 921af58c..76e066c1 100644 --- a/azuredevops/client.go +++ b/azuredevops/client.go @@ -10,6 +10,7 @@ import ( "errors" "io" "io/ioutil" + "log" "net/http" "net/url" "reflect" @@ -78,6 +79,9 @@ func NewClientWithOptions(connection *Connection, baseUrl string, options ...Cli for _, fn := range options { fn(client) } + + log.Println("Created client with baseURL", client.baseUrl) + return client } diff --git a/azuredevops/connection.go b/azuredevops/connection.go index eb76f53c..6381be39 100644 --- a/azuredevops/connection.go +++ b/azuredevops/connection.go @@ -7,6 +7,7 @@ import ( "context" "crypto/tls" "encoding/base64" + "log" "strings" "sync" "time" @@ -63,8 +64,10 @@ func (connection *Connection) GetClientByResourceAreaId(ctx context.Context, res } var client *Client if resourceAreaInfo != nil { + log.Println("resourceAreaInfo is not nil") client = connection.GetClientByUrl(*resourceAreaInfo.LocationUrl) } else { + log.Println("resourceAreaInfo is nil") // resourceAreaInfo will be nil for on prem servers client = connection.GetClientByUrl(connection.BaseUrl) }