1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-01 15:18:20 +00:00

Change some logging to debug

# Conflicts:
#	controller/generic_controller.go
#	vendor.conf
This commit is contained in:
Darren Shepherd
2018-07-13 13:09:05 -07:00
parent 003c94dd27
commit 88e3507f72
2 changed files with 3 additions and 3 deletions

View File

@@ -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