Skip to content

Commit

Permalink
Remove useless debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
titilambert committed Nov 22, 2024
1 parent f1470b1 commit cc687cb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions registry/txt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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], ".")
Expand Down

0 comments on commit cc687cb

Please sign in to comment.