mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-07 01:56:57 +02:00
Remove useless debug log
This commit is contained in:
parent
f1470b1422
commit
cc687cb5ac
@ -392,18 +392,15 @@ func (pr affixNameMapper) isSuffix() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (pr affixNameMapper) toEndpointName(txtDNSName string) (endpointName string, recordType string) {
|
func (pr affixNameMapper) toEndpointName(txtDNSName string) (endpointName string, recordType string) {
|
||||||
log.Debug("Getting endpoint from TXT record.")
|
|
||||||
lowerDNSName := strings.ToLower(txtDNSName)
|
lowerDNSName := strings.ToLower(txtDNSName)
|
||||||
|
|
||||||
// drop prefix
|
// drop prefix
|
||||||
if pr.isPrefix() {
|
if pr.isPrefix() {
|
||||||
log.Debug("TXT record has a prefix.")
|
|
||||||
return pr.dropAffixExtractType(lowerDNSName)
|
return pr.dropAffixExtractType(lowerDNSName)
|
||||||
}
|
}
|
||||||
|
|
||||||
// drop suffix
|
// drop suffix
|
||||||
if pr.isSuffix() {
|
if pr.isSuffix() {
|
||||||
log.Debug("TXT record has a suffix.")
|
|
||||||
dc := strings.Count(pr.suffix, ".")
|
dc := strings.Count(pr.suffix, ".")
|
||||||
DNSName := strings.SplitN(lowerDNSName, ".", 2+dc)
|
DNSName := strings.SplitN(lowerDNSName, ".", 2+dc)
|
||||||
domainWithSuffix := strings.Join(DNSName[:1+dc], ".")
|
domainWithSuffix := strings.Join(DNSName[:1+dc], ".")
|
||||||
|
Loading…
Reference in New Issue
Block a user