Skip to content

Commit 7debf8a

Browse files
committed
Don't discard klog logs at the highest log levels (debug and trace)
1 parent c25a229 commit 7debf8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func main() {
100100
}
101101
log.SetLevel(ll)
102102

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

0 commit comments

Comments
 (0)