Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

Commit df41366

Browse files
author
Ryan SVIHLA
committed
better logging
1 parent 8c8964f commit df41366

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pkg/authenticated_client.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,19 @@ func apiURL() string {
167167
if env.Verbose {
168168
log.Printf("env is %v", Env)
169169
}
170+
var url string
170171
switch Env {
171172
case "dev":
172-
return "https://api.dev.cloud.datastax.com"
173+
url = "https://api.dev.cloud.datastax.com"
173174
case "test":
174-
return "https://api.test.cloud.datastax.com"
175+
url = "https://api.test.cloud.datastax.com"
175176
default:
176-
return "https://api.astra.datastax.com"
177+
url = "https://api.astra.datastax.com"
177178
}
179+
if env.Verbose {
180+
log.Printf("api url is %v", url)
181+
}
182+
return url
178183
}
179184

180185
func dbURL() string {

0 commit comments

Comments
 (0)