Skip to content

Commit

Permalink
set klog for vk
Browse files Browse the repository at this point in the history
  • Loading branch information
fprojetto committed Aug 2, 2021
1 parent 8bf3d65 commit 9c351f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/virtual-kubelet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import (
"syscall"

"github.com/spf13/cobra"
"github.com/virtual-kubelet/virtual-kubelet/log"
"github.com/virtual-kubelet/virtual-kubelet/log/klogv2"
"k8s.io/client-go/discovery"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
Expand All @@ -46,6 +48,8 @@ func main() {
cancel()
}()

log.L = klogv2.New(nil)

opts := &root.Opts{}
if err := root.SetDefaultOpts(opts); err != nil {
klog.Fatal(err)
Expand Down

0 comments on commit 9c351f7

Please sign in to comment.