]> git.sur5r.net Git - openldap/commitdiff
Added LDAP_LOG Messages
authorJulius Enarusai <julius@openldap.org>
Tue, 16 Apr 2002 20:11:09 +0000 (20:11 +0000)
committerJulius Enarusai <julius@openldap.org>
Tue, 16 Apr 2002 20:11:09 +0000 (20:11 +0000)
servers/slapd/back-ldap/suffixmassage.c
servers/slapd/back-ldap/unbind.c

index 22ddb93126443ff6be146b48ca46cd93eb6c47ee..0847740f02fbcc1c09008ca63a45d733134f55c9 100644 (file)
@@ -96,10 +96,16 @@ ldap_back_dn_massage(
                         res->bv_val = ch_malloc( res->bv_len + 1 );
                         strncpy( res->bv_val, dn->bv_val, diff );
                         strcpy( &res->bv_val[diff], li->suffix_massage[i+dst]->bv_val );
+#ifdef NEW_LOGGING
+                                       LDAP_LOG (( "suffixmassage", LDAP_LEVEL_ARGS,
+                                               "ldap_back_dn_massage: converted \"%s\" to \"%s\"\n",
+                                               dn->bv_val, res->bv_val ));
+#else
                         Debug( LDAP_DEBUG_ARGS,
                                 "ldap_back_dn_massage:"
                                " converted \"%s\" to \"%s\"\n",
                                 dn->bv_val, res->bv_val, 0 );
+#endif
                         break;
                 }
         }
index a0b11f40a498b0f47cb1a39d3f445d50603ba736..f3f5617d5d49d614d81e51470d855d4bed0075b0 100644 (file)
@@ -71,9 +71,15 @@ ldap_back_conn_destroy(
        ldap_pvt_thread_mutex_unlock( &li->conn_mutex );
 
        if (lc) {
+#ifdef NEW_LOGGING
+               LDAP_LOG(( "backend", LDAP_LEVEL_DETAIL1,
+                       "ldap_back_conn_destroy: destroying conn %ld\n",
+                       conn->c_connid ));
+#else /* !NEW_LOGGING */
                Debug( LDAP_DEBUG_TRACE,
                        "=>ldap_back_conn_destroy: destroying conn %ld\n",
                        lc->conn->c_connid, 0, 0 );
+#endif
 
 #ifdef ENABLE_REWRITE
                /*