Skip to content

Commit

Permalink
Use klog as controller-runtime default logger
Browse files Browse the repository at this point in the history
  • Loading branch information
astraw99 committed Oct 16, 2022
1 parent 8ad090e commit 1f9ff38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ package log

import (
"context"
"k8s.io/klog/v2"
"sync"
"time"

Expand Down Expand Up @@ -81,7 +82,7 @@ var (
// set to a NullLogSink.
var (
dlog = NewDelegatingLogSink(NullLogSink{})
Log = logr.New(dlog)
Log = klog.NewKlogr()
)

// FromContext returns a logger with predefined values from a context.Context.
Expand Down

0 comments on commit 1f9ff38

Please sign in to comment.