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
…are many unused ldap groups for each user

  fixes #20038

Signed-off-by: stonezdj <[email protected]>
  • Loading branch information
stonezdj committed Oct 14, 2024
1 parent ad8c5df commit ab28808
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)

Check warning on line 207 in src/core/auth/ldap/ldap.go

View check run for this annotation

Codecov / codecov/patch

src/core/auth/ldap/ldap.go#L207

Added line #L207 was not covered by tests
return nil, false
}
return &lGroups[0], true
Expand Down

0 comments on commit ab28808

Please sign in to comment.