Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan SVIHLA committed Feb 10, 2022
1 parent 8c8964f commit df41366
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pkg/authenticated_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,19 @@ func apiURL() string {
if env.Verbose {
log.Printf("env is %v", Env)
}
var url string
switch Env {
case "dev":
return "https://api.dev.cloud.datastax.com"
url = "https://api.dev.cloud.datastax.com"
case "test":
return "https://api.test.cloud.datastax.com"
url = "https://api.test.cloud.datastax.com"
default:
return "https://api.astra.datastax.com"
url = "https://api.astra.datastax.com"
}
if env.Verbose {
log.Printf("api url is %v", url)
}
return url
}

func dbURL() string {
Expand Down

0 comments on commit df41366

Please sign in to comment.