]> git.sur5r.net Git - openldap/commitdiff
try new logging routines (behind NEW_LOGGING)
authorGary Williams <gwilliams@openldap.org>
Wed, 25 Oct 2000 15:35:01 +0000 (15:35 +0000)
committerGary Williams <gwilliams@openldap.org>
Wed, 25 Oct 2000 15:35:01 +0000 (15:35 +0000)
libraries/liblber/decode.c

index 1493477cb3a591cb93c4ae4681540929eefec761..c0e22c0de3f623c49c45787cb0d8c8cc5c441b00 100644 (file)
@@ -494,11 +494,14 @@ ber_scanf ( BerElement *ber,
 
        fmt_reset = fmt;
 
+#ifdef NEW_LOGGING
        LDAP_LOG(( "LIBLBER", LDAP_LEVEL_ENTRY, "ber_scanf fmt (%s) ber:\n", fmt ));
-
+        BER_DUMP(( "LIBLBER", LDAP_LEVEL_DETAIL2, ber, 1 ));
+#else
        ber_log_printf( LDAP_DEBUG_TRACE, ber->ber_debug,
                "ber_scanf fmt (%s) ber:\n", fmt );
        ber_log_dump( LDAP_DEBUG_BER, ber->ber_debug, ber, 1 );
+#endif
 
        for ( rc = 0; *fmt && rc != LBER_DEFAULT; fmt++ ) {
                /* When this is modified, remember to update