policy: 同步时日志调整

This commit is contained in:
Yousong Zhou
2018-12-03 13:44:45 +00:00
parent c33df15e64
commit 801eabbe83
+1 -2
View File
@@ -218,10 +218,9 @@ func (manager *SPolicyManager) start(refreshInterval time.Duration, retryInterva
}
func (manager *SPolicyManager) sync() {
log.Debugf("start synchronize RBAC policies ...")
policies, adminPolicies, err := fetchPolicies()
if err != nil {
log.Errorf("sync policy fail %s", err)
log.Errorf("sync rbac policy failed: %s", err)
time.AfterFunc(manager.failedRetryInterval, manager.sync)
return
}