Log LDAP errors with filter expression