avoid logging of "Partial search results returned: Sizelimit exceeded…" #12292
When a search request containing a limit is sent against an LDAP server, most will sent the message as in $subject along with the results. The LDAP PHP module triggers this as an PHP error, thus ending up through our error handler in the Nextcloud log.
While not being an error in itself, often admins perceive this as confusing, ending up in several requests not only in this issue tracker. Hence, it would be nice to filter out this message, like this PR does. Fixes #2947
An alternative approach would be to open up our internal error handler from core to app specific proceedings.
How to test:
Before the patch, the mentioned error message would be written. Now it is not supposed to happen anymore.
… at" LDAP servers respond with that even if a limit was passed with the request. Having this statement logged causes a lot of confusion. Signed-off-by: Arthur Schiwon <firstname.lastname@example.org>