Skip to content
Snippets Groups Projects
Commit 83b37c0c authored by kaiyou's avatar kaiyou
Browse files

Improve k8s logging

parent b8813008
No related branches found
No related tags found
No related merge requests found
...@@ -22,11 +22,11 @@ import ( ...@@ -22,11 +22,11 @@ import (
var kubeLogger = &Unit{ var kubeLogger = &Unit{
Name: "kube-logger", Name: "kube-logger",
Start: func(u *Unit, c *Cluster, ctx context.Context) error { Start: func(u *Unit, c *Cluster, ctx context.Context) error {
// Max out verbosity, which will get filtered later by logr // Max out verbosity, which will get filtered later by logr
// This is kind of hacky, yet it is the only public interface to alter // This is kind of hacky, yet it is the only public interface to alter
// klog internal filtering levels // klog internal filtering levels
var max klog.Level var max klog.Level
max.Set(fmt.Sprint(9)) max.Set(fmt.Sprint(9))
klog.SetLogger(u.Manager.Logger) klog.SetLogger(u.Manager.Logger)
return nil return nil
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment