Show actual URL to use instead of just "sandbox" (#1166)

* Show actual URL to use instead of just "sandbox"

Instead of stating "sandbox", sometimes incorrectly if sandbox is false, just output the actual URL that will be used.

* Replace Println with Printf

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
James Gilberd 2021-06-05 05:30:17 +12:00 committed by GitHub
parent 6beaafdc9b
commit fdd6387aad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,13 +12,13 @@ type dnsMadeEasyProvider struct {
}
func newProvider(apiKey string, secretKey string, sandbox bool, debug bool) *dnsMadeEasyProvider {
fmt.Println("creating DNSMADEEASY provider for sandbox")
baseURL := baseURLV2_0
if sandbox {
baseURL = sandboxBaseURLV2_0
}
fmt.Printf("Creating DNSMADEEASY provider for %q\n", baseURL)
return &dnsMadeEasyProvider{
restAPI: &dnsMadeEasyRestAPI{
apiKey: apiKey,