mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-09-20 14:56:20 +08:00
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:
parent
6beaafdc9b
commit
fdd6387aad
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue