Skip to content

Commit

Permalink
Fix log lines for filters on ADSearch - getInternalSearch() (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylinsic authored Apr 19, 2024
1 parent 11ee04e commit c65e9cd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ protected LdapInternalSearch getInternalSearch(final Set<String> attrsToGet) {
final String optionsFilter = LdapConstants.getSearchFilter(options);

if (LOG.isOk()) {
LOG.ok("Options filter: {0} " + optionsFilter);
LOG.ok("Options filter: '{0}'", optionsFilter);
}

final String searchFilter = oclass.equals(ObjectClass.ACCOUNT)
Expand All @@ -167,21 +167,21 @@ protected LdapInternalSearch getInternalSearch(final Set<String> attrsToGet) {
: null;

if (LOG.isOk()) {
LOG.ok("Search filter: {0} " + searchFilter);
LOG.ok("Search filter: '{0}'", searchFilter);
}

final String nativeFilter = filter != null ? filter.getNativeFilter() : null;

if (LOG.isOk()) {
LOG.ok("Native filter: {0} " + nativeFilter);
LOG.ok("Native filter: '{0}'", nativeFilter);
}

final String membershipSearchFilter = oclass.equals(ObjectClass.ACCOUNT)
? utils.getMembershipSearchFilter(((ADConfiguration) conn.getConfiguration()))
: null;

if (LOG.isOk()) {
LOG.ok("Membership filter: {0} " + membershipSearchFilter);
LOG.ok("Membership filter: '{0}'", membershipSearchFilter);
}

return new LdapInternalSearch(
Expand Down

0 comments on commit c65e9cd

Please sign in to comment.