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

This commit is contained in:
Kobayashi Daisuke
2020-06-09 12:01:45 +09:00
parent dcaa8d7126
commit 4ae11dac2e
34 changed files with 36 additions and 43 deletions

View File

@@ -139,7 +139,7 @@ func NewDaemonSetsController(
failedPodsBackoff *flowcontrol.Backoff,
) (*DaemonSetsController, error) {
eventBroadcaster := record.NewBroadcaster()
eventBroadcaster.StartLogging(klog.Infof)
eventBroadcaster.StartStructuredLogging(0)
eventBroadcaster.StartRecordingToSink(&v1core.EventSinkImpl{Interface: kubeClient.CoreV1().Events("")})
if kubeClient != nil && kubeClient.CoreV1().RESTClient().GetRateLimiter() != nil {