Merge pull request #91712 from KobayashiD27/structured-logging-in-event

Migrate log to klog.InfoS for staging/src/k8s.io/client-go
This commit is contained in:
Kubernetes Prow Robot
2020-06-22 23:53:40 -07:00
committed by GitHub
39 changed files with 47 additions and 46 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 {