mirror of
https://github.com/coredns/coredns.git
synced 2026-10-16 15:25:47 -04:00
fix(kubernetes): include structured key/value context in client-go logs (#8490)
This commit is contained in:
@@ -32,7 +32,7 @@ func init() { plugin.Register(pluginName, setup) }
|
||||
|
||||
func setup(c *caddy.Controller) error {
|
||||
// Do not call klog.InitFlags(nil) here. It will cause reload to panic.
|
||||
klog.SetLogger(logr.New(&loggerAdapter{log}))
|
||||
klog.SetLogger(logr.New(&loggerAdapter{P: log}))
|
||||
|
||||
k, err := kubernetesParse(c)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user