From: Quanah Gibson-Mount Date: Fri, 12 Jan 2007 22:55:39 +0000 (+0000) Subject: logging cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~190 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7b503e6290b20f83c8383a88176e3a879b5893c1;p=openldap logging cleanup --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index eecf90409b..bb024ee69f 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -747,11 +747,12 @@ connection_destroy( Connection *c ) slapd_remove( sd, sb, 1, 0, 0 ); if ( close_reason == NULL ) { - close_reason = ""; + Statslog( LDAP_DEBUG_STATS, "conn=%lu fd=%ld closed\n", + connid, (long) sd, 0, 0, 0 ); + } else { + Statslog( LDAP_DEBUG_STATS, "conn=%lu fd=%ld closed (%s)\n", + connid, (long) sd, close_reason, 0, 0 ); } - - Statslog( LDAP_DEBUG_STATS, "conn=%lu fd=%ld closed (%s)\n", - connid, (long) sd, close_reason, 0, 0 ); } }