mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 17:46:57 +02:00
Add logs
This commit is contained in:
parent
af7b072405
commit
e3fbc7eb30
@ -19,6 +19,7 @@ package source
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
"sigs.k8s.io/external-dns/endpoint"
|
"sigs.k8s.io/external-dns/endpoint"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -54,6 +55,7 @@ func (ms *targetFilterSource) Endpoints(ctx context.Context) ([]*endpoint.Endpoi
|
|||||||
|
|
||||||
// If all targets are filtered out, skip the endpoint.
|
// If all targets are filtered out, skip the endpoint.
|
||||||
if len(filteredTargets) == 0 {
|
if len(filteredTargets) == 0 {
|
||||||
|
log.WithField("endpoint", ep).Debugf("Skipping endpoint because all targets were filtered out")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user