mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
policy: 同步时日志调整
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user