Remove unnecessary log printing (#14685)

Co-authored-by: Anis Elleuch <anis@min.io>
This commit is contained in:
Anis Elleuch 2022-04-04 19:10:06 +01:00 committed by GitHub
parent b9d1698d74
commit d4251b2545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,10 +385,11 @@ func (sys *IAMSys) watch(ctx context.Context) {
if ok { if ok {
ch := watcher.watch(ctx, iamConfigPrefix) ch := watcher.watch(ctx, iamConfigPrefix)
for event := range ch { for event := range ch {
if err := sys.loadWatchedEvent(ctx, event); err != nil {
// we simply log errors // we simply log errors
err := sys.loadWatchedEvent(ctx, event)
logger.LogIf(ctx, fmt.Errorf("Failure in loading watch event: %v", err)) logger.LogIf(ctx, fmt.Errorf("Failure in loading watch event: %v", err))
} }
}
return return
} }