From b4243bc119b2f88318103176c7c671662c9ff371 Mon Sep 17 00:00:00 2001 From: Julius Enarusai Date: Wed, 27 Mar 2002 19:28:43 +0000 Subject: [PATCH] Added LDAP_LOG messages --- libraries/libldap/error.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 ) ); -- 2.39.5