From abce040088a6f3236ae154b61cd44fabd775f57f Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Sat, 6 Mar 2021 18:27:46 +0100 Subject: [PATCH] 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. --- cmd/iam.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/iam.go b/cmd/iam.go index 253c30727..4dc67b21e 100644 --- a/cmd/iam.go +++ b/cmd/iam.go @@ -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.