fix: Remove repetitive IAM ready message (#11723)

"IAM initialization complete" is printed each 5 minutes, avoid this by
printing it only during the first initialization of IAM.
This commit is contained in:
Anis Elleuch
2021-03-06 18:27:46 +01:00
committed by GitHub
parent 558762bdf6
commit abce040088

View File

@@ -561,7 +561,6 @@ func (sys *IAMSys) Load(ctx context.Context, store IAMStorageAPI) error {
default:
close(sys.configLoaded)
}
logger.Info("IAM initialization complete")
return nil
}
@@ -662,6 +661,8 @@ func (sys *IAMSys) Init(ctx context.Context, objAPI ObjectLayer) {
// Invalidate the old cred always, even upon error to avoid any leakage.
globalOldCred = auth.Credentials{}
go sys.store.watch(ctx, sys)
logger.Info("IAM initialization complete")
}
// DeletePolicy - deletes a canned policy from backend or etcd.