From: Julius Enarusai Date: Tue, 2 Apr 2002 00:22:57 +0000 (+0000) Subject: Added LDAP_LOG Messages X-Git-Tag: OPENLDAP_REL_ENG_2_MP~272 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b082ed9355e06cd5bb6e9f2440d7253c5fd3dd89;p=openldap Added LDAP_LOG Messages --- diff --git a/libraries/libldap/unbind.c b/libraries/libldap/unbind.c index b2a35e9c5c..4474920bf7 100644 --- a/libraries/libldap/unbind.c +++ b/libraries/libldap/unbind.c @@ -58,7 +58,11 @@ ldap_unbind_ext_s( int ldap_unbind( LDAP *ld ) { +#ifdef NEW_LOGGING + LDAP_LOG (( "unbind", LDAP_LEVEL_ENTRY, "ldap_unbind\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_unbind\n", 0, 0, 0 ); +#endif return( ldap_unbind_ext( ld, NULL, NULL ) ); } @@ -176,7 +180,11 @@ ldap_send_unbind( { BerElement *ber; +#ifdef NEW_LOGGING + LDAP_LOG (( "unbind", LDAP_LEVEL_ENTRY, "ldap_send_unbind\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_send_unbind\n", 0, 0, 0 ); +#endif #ifdef LDAP_CONNECTIONLESS if (LDAP_IS_UDP(ld)) diff --git a/libraries/libldap/url.c b/libraries/libldap/url.c index 85ac5ea01b..42a595aee5 100644 --- a/libraries/libldap/url.c +++ b/libraries/libldap/url.c @@ -445,7 +445,11 @@ ldap_url_parse_ext( LDAP_CONST char *url_in, LDAPURLDesc **ludpp ) * because a call to LDAP_INT_GLOBAL_OPT() will try to allocate * the options and cause infinite recursion */ +#ifdef NEW_LOGGING + LDAP_LOG (( "url", LDAP_LEVEL_ENTRY, "ldap_url_parse_ext(%s)\n", url_in )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_url_parse_ext(%s)\n", url_in, 0, 0 ); +#endif #endif *ludpp = NULL; /* pessimistic */