]> git.sur5r.net Git - openldap/commitdiff
logging cleanup
authorQuanah Gibson-Mount <quanah@openldap.org>
Fri, 12 Jan 2007 22:55:39 +0000 (22:55 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 12 Jan 2007 22:55:39 +0000 (22:55 +0000)
servers/slapd/connection.c

index eecf90409b9cb09c3cf6ed5179cb9609d6463704..bb024ee69f66e6ecea5409b5a91fe27bc3ace114 100644 (file)
@@ -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 );
        }
 }