From: Julius Enarusai Date: Wed, 27 Mar 2002 19:28:43 +0000 (+0000) Subject: Added LDAP_LOG messages X-Git-Tag: OPENLDAP_REL_ENG_2_MP~298 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b4243bc119b2f88318103176c7c671662c9ff371;p=openldap Added LDAP_LOG messages --- diff --git a/libraries/libldap/error.c b/libraries/libldap/error.c index 3540828821..8fc685b25f 100644 --- a/libraries/libldap/error.c +++ b/libraries/libldap/error.c @@ -146,7 +146,11 @@ ldap_err2string( int err ) { const struct ldaperror *e; +#ifdef NEW_LOGGING + LDAP_LOG (( "error", LDAP_LEVEL_ENTRY, "ldap_err2string\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_err2string\n", 0, 0, 0 ); +#endif e = ldap_int_error( err ); @@ -158,7 +162,11 @@ void ldap_perror( LDAP *ld, LDAP_CONST char *str ) { const struct ldaperror *e; +#ifdef NEW_LOGGING + LDAP_LOG (( "error", LDAP_LEVEL_ENTRY, "ldap_perror\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_perror\n", 0, 0, 0 ); +#endif assert( ld != NULL ); assert( LDAP_VALID( ld ) ); @@ -239,7 +247,11 @@ ldap_parse_result( ber_tag_t tag; BerElement *ber; +#ifdef NEW_LOGGING + LDAP_LOG (( "error", LDAP_LEVEL_ENTRY, "ldap_parse_result\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_parse_result\n", 0, 0, 0 ); +#endif assert( ld != NULL ); assert( LDAP_VALID( ld ) );