]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/error.c
Added LDAP_LOG messages
[openldap] / libraries / libldap / error.c
index 0e7721a21aac290afe71cc8ccc042c833c11ad1f..8fc685b25f330ff17ba2a49e8c20590af7650334 100644 (file)
@@ -1,6 +1,6 @@
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 
@@ -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 ) );