mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 09:36:58 +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) {
|
||||
log.Debug("Getting endpoint from TXT record.")
|
||||
lowerDNSName := strings.ToLower(txtDNSName)
|
||||
|
||||
// drop prefix
|
||||
if pr.isPrefix() {
|
||||
log.Debug("TXT record has a prefix.")
|
||||
return pr.dropAffixExtractType(lowerDNSName)
|
||||
}
|
||||
|
||||
// drop suffix
|
||||
if pr.isSuffix() {
|
||||
log.Debug("TXT record has a suffix.")
|
||||
dc := strings.Count(pr.suffix, ".")
|
||||
DNSName := strings.SplitN(lowerDNSName, ".", 2+dc)
|
||||
domainWithSuffix := strings.Join(DNSName[:1+dc], ".")
|
||||
|
Loading…
Reference in New Issue
Block a user