Add "nentries" to send_search_result() Statslog message. Suggested

by ITS#1360.
This commit is contained in:
Howard Chu 2002-04-16 04:58:41 +00:00
parent dda2e4cee0
commit ababc07479

View File

@ -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);