From 7debf8a76818ecb93b83d595f0b9a9bea670a47a Mon Sep 17 00:00:00 2001 From: Dan Markhasin Date: Wed, 18 Dec 2024 09:55:48 +0200 Subject: [PATCH] Don't discard klog logs at the highest log levels (debug and trace) --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 12e1f8263..7d32da4a9 100644 --- a/main.go +++ b/main.go @@ -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()