From: Howard Chu Date: Tue, 16 Apr 2002 04:58:41 +0000 (+0000) Subject: Add "nentries" to send_search_result() Statslog message. Suggested X-Git-Tag: OPENLDAP_REL_ENG_2_MP~186 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ababc07479275dbc0b009601f9f97c048f8106a7;p=openldap Add "nentries" to send_search_result() Statslog message. Suggested by ITS#1360. --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 8c96ff0239..4343f90794 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -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);