Skip to content

Commit

Permalink
Change the log level from warning to debug to avoid noise when there … (
Browse files Browse the repository at this point in the history
goharbor#21034)

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

  fixes goharbor#20038

Signed-off-by: stonezdj <[email protected]>
  • Loading branch information
stonezdj authored Oct 14, 2024
1 parent 66ccf30 commit ab3d350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/auth/ldap/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func verifyGroupInLDAP(groupDN string, sess *ldap.Session) (*model.Group, bool)
return nil, false
}
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 &lGroups[0], true
Expand Down

0 comments on commit ab3d350

Please sign in to comment.