From: Quanah Gibson-Mount Date: Sat, 13 Jan 2007 18:33:38 +0000 (+0000) Subject: Logging cleanup (drop empty ()'s when it is a normal close) X-Git-Tag: OPENLDAP_REL_ENG_2_3_33~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfd4092399998712d822c67fb1d659bbc70ea039;p=thirdparty%2Fopenldap.git Logging cleanup (drop empty ()'s when it is a normal close) --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index d894ec3a14..10a90ee93f 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 ); } }