Skip to content

Commit

Permalink
Add debug log for ignored provider specific properties
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinfrommelt committed Oct 11, 2024
1 parent 570cbfc commit 2b59ea5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions endpoint/provider_specific_property_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ package endpoint

import (
"strings"

log "github.com/sirupsen/logrus"
)

type ProviderSpecificPropertyFilter struct {
Expand Down Expand Up @@ -48,6 +50,10 @@ func (pf ProviderSpecificPropertyFilter) Filter(endpoints []*Endpoint) {
for _, ep := range endpoints {
for _, providerSpecific := range ep.ProviderSpecific {
if !pf.Match(providerSpecific.Name) {
log.WithFields(log.Fields{
"dnsName": ep.DNSName,
"targets": ep.Targets,
}).Debugf("Provider specific property ignored by provider: %s", providerSpecific.Name)
ep.DeleteProviderSpecificProperty(providerSpecific.Name)
}
}
Expand Down

0 comments on commit 2b59ea5

Please sign in to comment.