mirror of
https://github.com/rancher/norman.git
synced 2025-09-04 16:50:41 +00:00
Change some logging to debug
# Conflicts: # controller/generic_controller.go # vendor.conf
This commit is contained in:
@@ -124,14 +124,14 @@ func (g *genericController) sync(ctx context.Context) error {
|
||||
DeleteFunc: g.queueObject,
|
||||
})
|
||||
|
||||
logrus.Infof("Syncing %s Controller", g.name)
|
||||
logrus.Debugf("Syncing %s Controller", g.name)
|
||||
|
||||
go g.informer.Run(ctx.Done())
|
||||
|
||||
if !cache.WaitForCacheSync(ctx.Done(), g.informer.HasSynced) {
|
||||
return fmt.Errorf("failed to sync controller %s", g.name)
|
||||
}
|
||||
logrus.Infof("Syncing %s Controller Done", g.name)
|
||||
logrus.Debugf("Syncing %s Controller Done", g.name)
|
||||
|
||||
g.synced = true
|
||||
return nil
|
||||
|
@@ -71,7 +71,7 @@ func run(ctx context.Context, name string, client kubernetes.Interface, cb Callb
|
||||
|
||||
func createRecorder(name string, kubeClient kubernetes.Interface) record.EventRecorder {
|
||||
eventBroadcaster := record.NewBroadcaster()
|
||||
eventBroadcaster.StartLogging(logrus.Infof)
|
||||
eventBroadcaster.StartLogging(logrus.Debugf)
|
||||
eventBroadcaster.StartRecordingToSink(&v1core.EventSinkImpl{Interface: v1core.New(kubeClient.CoreV1().RESTClient()).Events("")})
|
||||
return eventBroadcaster.NewRecorder(legacyscheme.Scheme, v1.EventSource{Component: name})
|
||||
}
|
||||
|
Reference in New Issue
Block a user