mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
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:
parent
558762bdf6
commit
abce040088
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user