Change the log level from warning to debug to avoid noise when there … (#21034)

Change the log level from warning to debug to avoid noise when there are many unused ldap groups for each user

  fixes #20038

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
This commit is contained in:
stonezdj(Daojun Zhang) 2024-10-14 19:34:15 +08:00 committed by GitHub
parent 66ccf302f3
commit ab3d3504fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,7 +204,7 @@ func verifyGroupInLDAP(groupDN string, sess *ldap.Session) (*model.Group, bool)
return nil, false return nil, false
} }
if len(lGroups) == 0 { if len(lGroups) == 0 {
log.Warningf("Can not get the ldap group name with DN %v", groupDN) log.Debugf("Can not get the ldap group name with DN %v", groupDN)
return nil, false return nil, false
} }
return &lGroups[0], true return &lGroups[0], true