Skip to content

Commit

Permalink
Don't discard klog logs at the highest log levels (debug and trace)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarkhas committed Dec 18, 2024
1 parent c25a229 commit 7debf8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func main() {
}
log.SetLevel(ll)

if ll >= log.DebugLevel {
if ll < log.DebugLevel {
// Klog V2 is used by k8s.io/apimachinery/pkg/labels and can throw (a lot) of irrelevant logs
// See https://github.com/kubernetes-sigs/external-dns/issues/2348
defer klog.ClearLogger()
Expand Down

0 comments on commit 7debf8a

Please sign in to comment.