don't show recurring msg when pages result was turned off

and only as debug level otherwise.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2017-12-21 14:29:56 +01:00
parent 233fd16049
commit 0941781d1e
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
2 changed files with 6 additions and 3 deletions

View File

@ -1059,8 +1059,11 @@ class Access extends LDAPUtility implements IUserTools {
$this->pagedSearchedSuccessful = true;
}
} else {
if(!is_null($limit)) {
\OCP\Util::writeLog('user_ldap', 'Paged search was not available', \OCP\Util::INFO);
if(!is_null($limit) && intval($this->connection->ldapPagingSize) !== 0) {
\OC::$server->getLogger()->debug(
'Paged search was not available',
[ 'app' => 'user_ldap' ]
);
}
}
/* ++ Fixing RHDS searches with pages with zero results ++

View File

@ -46,7 +46,7 @@ use OC\ServerNotAvailableException;
* @property boolean turnOnPasswordChange
* @property boolean hasPagedResultSupport
* @property string[] ldapBaseUsers
* @property int|string ldapPagingSize holds an integer
* @property int|null ldapPagingSize holds an integer
* @property bool|mixed|void ldapGroupMemberAssocAttr
* @property string ldapUuidUserAttribute
* @property string ldapUuidGroupAttribute