1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Add --verbose flag, default to less verbose output (#1721)

This commit is contained in:
Tom Limoncelli
2022-08-20 20:59:02 -04:00
committed by GitHub
parent d907cdd2c2
commit 8bb63be8f5
7 changed files with 35 additions and 6 deletions

View File

@@ -7,6 +7,7 @@ import (
"strings"
"github.com/StackExchange/dnscontrol/v3/models"
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
)
// DetermineNameservers will find all nameservers we should use for a domain. It follows the following rules:
@@ -25,7 +26,9 @@ func DetermineNameserversForProviders(dc *models.DomainConfig, providers []*mode
if n == 0 {
continue
}
fmt.Printf("----- Getting nameservers from: %s\n", dnsProvider.Name)
if !printer.SkinnyReport {
fmt.Printf("----- Getting nameservers from: %s\n", dnsProvider.Name)
}
nss, err := dnsProvider.Driver.GetNameservers(dc.Name)
if err != nil {
return nil, err