mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Add "nentries" to send_search_result() Statslog message. Suggested
by ITS#1360.
This commit is contained in:
parent
dda2e4cee0
commit
ababc07479
@ -594,10 +594,15 @@ send_search_result(
|
||||
err, matched, text, refs,
|
||||
NULL, NULL, NULL, ctrls );
|
||||
|
||||
{
|
||||
char nbuf[64];
|
||||
sprintf( nbuf, "%ld nentries=%d", (long) err, nentries );
|
||||
|
||||
Statslog( LDAP_DEBUG_STATS,
|
||||
"conn=%ld op=%ld SEARCH RESULT tag=%lu err=%ld text=%s\n",
|
||||
"conn=%ld op=%ld SEARCH RESULT tag=%lu err=%s text=%s\n",
|
||||
(long) op->o_connid, (long) op->o_opid,
|
||||
(unsigned long) tag, (long) err, text ? text : "" );
|
||||
(unsigned long) tag, nbuf, text ? text : "" );
|
||||
}
|
||||
|
||||
if (tmp != NULL) {
|
||||
ch_free(tmp);
|
||||
|
Loading…
Reference in New Issue
Block a user