mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-24 11:15:24 +01:00
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:
parent
66ccf302f3
commit
ab3d3504fb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user