From 7b503e6290b20f83c8383a88176e3a879b5893c1 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Fri, 12 Jan 2007 22:55:39 +0000 Subject: [PATCH] logging cleanup --- servers/slapd/connection.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 ); } } -- 2.39.5