提交 36de02d1 编写于 作者: K Kobayashi Daisuke 提交者: Kubernetes Publisher

Replace StartLogging(klog.Infof) with StartStructuredLogging(0)

Kubernetes-commit: 4ae11dac2e2cc8594c528a679db5861c0926b514
上级 d59619ac
......@@ -97,7 +97,7 @@ func NewController(
utilruntime.Must(samplescheme.AddToScheme(scheme.Scheme))
klog.V(4).Info("Creating event broadcaster")
eventBroadcaster := record.NewBroadcaster()
eventBroadcaster.StartLogging(klog.Infof)
eventBroadcaster.StartStructuredLogging(0)
eventBroadcaster.StartRecordingToSink(&typedcorev1.EventSinkImpl{Interface: kubeclientset.CoreV1().Events("")})
recorder := eventBroadcaster.NewRecorder(scheme.Scheme, corev1.EventSource{Component: controllerAgentName})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册