Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
BadLiveware committed Mar 5, 2023
1 parent 6c64c1e commit b51b791
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/targetfiltersource.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package source
import (
"context"

log "github.com/sirupsen/logrus"
"sigs.k8s.io/external-dns/endpoint"
)

Expand Down Expand Up @@ -54,6 +55,7 @@ func (ms *targetFilterSource) Endpoints(ctx context.Context) ([]*endpoint.Endpoi

// If all targets are filtered out, skip the endpoint.
if len(filteredTargets) == 0 {
log.WithField("endpoint", ep).Debugf("Skipping endpoint because all targets were filtered out")
continue
}

Expand Down

0 comments on commit b51b791

Please sign in to comment.