]> git.sur5r.net Git - openldap/commitdiff
Added LDAP_LOG messages
authorJulius Enarusai <julius@openldap.org>
Mon, 1 Apr 2002 22:31:44 +0000 (22:31 +0000)
committerJulius Enarusai <julius@openldap.org>
Mon, 1 Apr 2002 22:31:44 +0000 (22:31 +0000)
libraries/libldap/sbind.c
libraries/libldap/search.c

index baa7ac8c59eaf9e45306057f55f2c9d39039026d..eb8aaed4bd57f564e125b6011efa549c53f713cd 100644 (file)
@@ -62,7 +62,11 @@ ldap_simple_bind(
        int msgid;
        struct berval cred;
 
+#ifdef NEW_LOGGING
+       LDAP_LOG (( "sbind", LDAP_LEVEL_ENTRY, "ldap_simple_bind\n" ));
+#else
        Debug( LDAP_DEBUG_TRACE, "ldap_simple_bind\n", 0, 0, 0 );
+#endif
 
        assert( ld != NULL );
        assert( LDAP_VALID( ld ) );
@@ -97,7 +101,11 @@ ldap_simple_bind_s( LDAP *ld, LDAP_CONST char *dn, LDAP_CONST char *passwd )
 {
        struct berval cred;
 
+#ifdef NEW_LOGGING
+       LDAP_LOG (( "sbind", LDAP_LEVEL_ENTRY, "ldap_simple_bind_s\n" ));
+#else
        Debug( LDAP_DEBUG_TRACE, "ldap_simple_bind_s\n", 0, 0, 0 );
+#endif
 
        if ( passwd != NULL ) {
                cred.bv_val = (char *) passwd;
index 75eae1cb92caf9c960019706b5172099f0fd86bd..c0bc46df7899dae708c45b7ce4e559d476bc1fb2 100644 (file)
@@ -61,7 +61,11 @@ ldap_search_ext(
        BerElement      *ber;
        int timelimit;
 
+#ifdef NEW_LOGGING
+       LDAP_LOG (( "search", LDAP_LEVEL_ENTRY, "ldap_search_ext\n" ));
+#else
        Debug( LDAP_DEBUG_TRACE, "ldap_search_ext\n", 0, 0, 0 );
+#endif
 
        assert( ld != NULL );
        assert( LDAP_VALID( ld ) );
@@ -179,7 +183,11 @@ ldap_search(
 {
        BerElement      *ber;
 
+#ifdef NEW_LOGGING
+       LDAP_LOG (( "search", LDAP_LEVEL_ENTRY, "ldap_search\n" ));
+#else
        Debug( LDAP_DEBUG_TRACE, "ldap_search\n", 0, 0, 0 );
+#endif
 
        assert( ld != NULL );
        assert( LDAP_VALID( ld ) );