Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
BadLiveware committed Jun 29, 2023
1 parent af7b072 commit e3fbc7e
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 e3fbc7e

Please sign in to comment.